资源简介
qtcreator-gdb-7.4-MINGW32_NT-6.1-i686
QtCreator 的调试器
代码片段和文件信息
# Copyright 2007 Google Inc. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
“““Abstract base Classes (ABCs) according to PEP 3119.“““
import types
# 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:
for name in getattr(base
相关资源
- VisualGDB-5.4r12.7z
- VisualGDB-5.3r8-trial 及破解补丁
- VisualGDB-5.3 PatchVisualGDB
- qtcreator-gdb-7.4-MINGW32_NT-6.1-i686.tar QT4 调
- Qt Creator for Linux 32位 qt-creator-linux-x8
- VisualGDB.zip
- GDAL打开ESRI FileGDB格式数据
- gdb手册(debuging with gdb)(中文).x
- gdb最新版本
- visualGDB-破解版-可用vs2017
- MinGW32-4.8.2.7z
- VisualGDB_vs2017好用.rar
- make.exe_qmake.exe_cmake.exe_gdb.exe
- opencv-4.10.zip
- VisualGDB-5.2r8.7z
- 全国省级、地市级、县市级shpcsvcpgd
- 基于node+mongdb的后台管理系统
- gdb-9.1.tar.xz
- VisualGDBSuitVS2017.rar
- gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-
- qt-creator-opensource-windows-x86-3.2.2.exe
- VisualGDB 5.4和VisualKernel 3.1的安装包与注
- Qt Creator快速入门_第三版.pdf 带书签
- 采用arcgis的arcpy写的一个合并多个gd
- visualgdb 2017 破解补丁
- mips gdbserver二进制文件
- mingw32-make-3.81-20080326-2.tar.gz
- 亲测可用VisualGDB5.4p3补丁
- mingw32-make-3.81-2.tar.gz
- GDB中文手册 GDB
评论
共有 条评论