资源简介
这是Dev c++5.11,我出的积分比其他人少多了,直接解压,然后点进里面的文件夹,打开devcpp.exe就可以了,我没给安装文件。
代码片段和文件信息
# Copyright 2007 Google Inc. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
“““Abstract base Classes (ABCs) according to PEP 3119.“““
import types
from _weakrefset import WeakSet
# Instance of old-style class
class _C: pass
_InstanceType = type(_C())
def abstractmethod(funcobj):
“““A decorator indicating abstract methods.
Requires that the metaclass is ABCmeta or derived from it. A
class that has a metaclass derived from ABCmeta cannot be
instantiated unless all of its abstract methods are overridden.
The abstract methods can be called using any of the normal
‘super‘ call mechanisms.
Usage:
class C:
__metaclass__ = ABCmeta
@abstractmethod
def my_abstract_method(self ...):
...
“““
funcobj.__isabstractmethod__ = True
return funcobj
class abstractproperty(property):
“““A decorator indicating abstract properties.
Requires that the metaclass is ABCmeta or derived from it. A
class that has a metaclass derived from ABCmeta cannot be
instantiated unless all of its abstract properties are overridden.
The abstract properties can be called using any of the normal
‘super‘ call mechanisms.
Usage:
class C:
__metaclass__ = ABCmeta
@abstractproperty
def my_abstract_property(self):
...
This defines a read-only property; you can also define a read-write
abstract property using the ‘long‘ form of property declaration:
class C:
__metaclass__ = ABCmeta
def getx(self): ...
def setx(self value): ...
x = abstractproperty(getx setx)
“““
__isabstractmethod__ = True
class ABCmeta(type):
“““metaclass for defining Abstract base Classes (ABCs).
Use this metaclass to create an ABC. An ABC can be subclassed
directly and then acts as a mix-in class. You can also register
unrelated concrete classes (even built-in classes) and unrelated
ABCs as ‘virtual subclasses‘ -- these and their descendants will
be considered subclasses of the registering ABC by the built-in
issubclass() function but the registering ABC won‘t show up in
their MRO (Method Resolution Order) nor will method
implementations defined by the registering ABC be callable (not
even via super()).
“““
# A global counter that is incremented each time a class is
# registered as a virtual subclass of anything. It forces the
# negative cache to be cleared before its next use.
_abc_invalidation_counter = 0
def __new__(mcls name bases namespace):
cls = super(ABCmeta mcls).__new__(mcls name bases namespace)
# Compute set of abstract method names
abstracts = set(name
for name value in namespace.items()
if getattr(value “__isabstractmethod__“ False))
for base in bases:
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 432128 2015-03-26 02:17 Dev-Cpp\Ast
文件 72531 2015-03-26 02:17 Dev-Cpp\Ast
文件 11365 2015-03-26 02:17 Dev-Cpp\Ast
文件 18758 2015-03-26 02:17 Dev-Cpp\Ast
文件 11801 2015-03-26 02:17 Dev-Cpp\Ast
文件 8381 2015-03-26 02:17 Dev-Cpp\Ast
文件 27422 2015-03-26 02:17 Dev-Cpp\Ast
文件 19191 2015-03-26 02:17 Dev-Cpp\Ast
文件 6579 2015-03-26 02:17 Dev-Cpp\Ast
文件 1854 2015-03-26 02:17 Dev-Cpp\Ast
文件 5928 2015-03-26 02:17 Dev-Cpp\Ast
文件 5541 2015-03-26 02:17 Dev-Cpp\Ast
文件 171008 2015-03-22 20:08 Dev-Cpp\ConsolePauser.exe
文件 18581 2015-03-26 02:17 Dev-Cpp\COPYING.txt
文件 2795008 2015-04-27 22:11 Dev-Cpp\devcpp.exe
文件 695 2011-08-23 14:07 Dev-Cpp\devcpp.exe.manifest
文件 1579852 2015-04-27 22:11 Dev-Cpp\devcpp.map
文件 174592 2015-03-22 20:09 Dev-Cpp\devcppPortable.exe
文件 464 2015-03-26 02:17 Dev-Cpp\Help\content.css
文件 2828 2015-03-26 02:17 Dev-Cpp\Help\FAQ\Compiler.htm
文件 399 2015-03-26 02:17 Dev-Cpp\Help\FAQ\Editor.htm
文件 1436 2015-03-26 02:17 Dev-Cpp\Help\FAQ\Environment.htm
文件 1521 2015-03-26 02:17 Dev-Cpp\Help\FAQ\Versions.htm
文件 951 2015-03-26 02:17 Dev-Cpp\Help\index.htm
文件 1624 2015-03-26 02:17 Dev-Cpp\Help\Interface\Dialog Windows\Compiler Options\Directories.htm
文件 845 2015-03-26 02:17 Dev-Cpp\Help\Interface\Dialog Windows\Compiler Options\General.htm
文件 1860 2015-03-26 02:17 Dev-Cpp\Help\Interface\Dialog Windows\Compiler Options\index.htm
文件 1041 2015-03-26 02:17 Dev-Cpp\Help\Interface\Dialog Windows\Compiler Options\Makefile.htm
文件 1422 2015-03-26 02:17 Dev-Cpp\Help\Interface\Dialog Windows\Compiler Options\Programs.htm
文件 2810 2015-03-26 02:17 Dev-Cpp\Help\Interface\Dialog Windows\Compiler Options\Settings.htm
............此处省略6091个文件信息
评论
共有 条评论