资源简介
该文件为Devcpp的绿色版。Devcpp是一款非常好用的C++ IDE,可以进行拓展。此文件经安装后打包,可以直接解压使用,无需再次安装。
代码片段和文件信息
# 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 Ast
文件 72531 2015-03-26 02:17 Ast
文件 11365 2015-03-26 02:17 Ast
文件 18758 2015-03-26 02:17 Ast
文件 11801 2015-03-26 02:17 Ast
文件 8381 2015-03-26 02:17 Ast
文件 27422 2015-03-26 02:17 Ast
文件 19191 2015-03-26 02:17 Ast
文件 6579 2015-03-26 02:17 Ast
文件 1854 2015-03-26 02:17 Ast
文件 5928 2015-03-26 02:17 Ast
文件 5541 2015-03-26 02:17 Ast
文件 171008 2015-03-22 20:08 ConsolePauser.exe
文件 18581 2015-03-26 02:17 COPYING.txt
文件 2795008 2015-04-27 22:11 devcpp.exe
文件 695 2011-08-23 14:07 devcpp.exe.manifest
文件 1579852 2015-04-27 22:11 devcpp.map
文件 174592 2015-03-22 20:09 devcppPortable.exe
文件 464 2015-03-26 02:17 Help\content.css
文件 2828 2015-03-26 02:17 Help\FAQ\Compiler.htm
文件 399 2015-03-26 02:17 Help\FAQ\Editor.htm
文件 1436 2015-03-26 02:17 Help\FAQ\Environment.htm
文件 1521 2015-03-26 02:17 Help\FAQ\Versions.htm
文件 951 2015-03-26 02:17 Help\index.htm
文件 1624 2015-03-26 02:17 Help\Interface\Dialog Windows\Compiler Options\Directories.htm
文件 845 2015-03-26 02:17 Help\Interface\Dialog Windows\Compiler Options\General.htm
文件 1860 2015-03-26 02:17 Help\Interface\Dialog Windows\Compiler Options\index.htm
文件 1041 2015-03-26 02:17 Help\Interface\Dialog Windows\Compiler Options\Makefile.htm
文件 1422 2015-03-26 02:17 Help\Interface\Dialog Windows\Compiler Options\Programs.htm
文件 2810 2015-03-26 02:17 Help\Interface\Dialog Windows\Compiler Options\Settings.htm
文件 703 2015-03-26 02:17 Help\Interface\Dialog Windows\Profile Analysis\Call Graph.htm
............此处省略5988个文件信息
相关资源
- 颜色识别形状识别STM103嵌入式代码
- c++ 邮件多附件群发
- c++ 透明代理(hookproxy)
- mfc 调用redis
- FTP客户端源码(c++)
- c++ 画图(14Qt-XPS)
- c++多边形交并差运算
- VC++基于OpenGL模拟的一个3维空间模型
- c++ 虚拟摄像头
- hook,捕获所有案件,查找所有窗口,
- C语言课设计算器
- c++ 简易贪吃蛇源码
- 高精度加法(c++代码)
- C++调用百度地图案例
- 北京化工大学计算方法(C/C++)讲义
- 基于VC++的SolidWorks二次开发SolidWorks
- c++ 模拟鼠标按键
- OFD编辑器
- Beginning C++17 From Novice to Professional
- C++ STL实现
- opencv手部轮廓识别以及轨迹识别
- 百度C++编码规范
- C++ sql2008 WebServer通讯.docx
- c++ 定时关机程序源码
- 基于VSCode和CMake实现C++开发
- c++语法查询工具
- c++ 账务系统源码
- GBT 28169-2011 嵌入式软件 C语言编码规范
- c++ 猜拳小游戏
- XUnZip Zip解压缩.rar
评论
共有 条评论