• 大小: 87.83MB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2022-08-16
  • 语言: C/C++
  • 标签: Devc++  Devcpp  C++  绿色版  

资源简介

该文件为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  Astyle\Astyle.exe
     文件       72531  2015-03-26 02:17  Astyle\doc\astyle.html
     文件       11365  2015-03-26 02:17  Astyle\doc\index.html
     文件       18758  2015-03-26 02:17  Astyle\doc\install.html
     文件       11801  2015-03-26 02:17  Astyle\doc\license.html
     文件        8381  2015-03-26 02:17  Astyle\doc\links.html
     文件       27422  2015-03-26 02:17  Astyle\doc\news.html
     文件       19191  2015-03-26 02:17  Astyle\doc\notes.html
     文件        6579  2015-03-26 02:17  Astyle\doc\scripts.html
     文件        1854  2015-03-26 02:17  Astyle\doc\styles.css
     文件        5928  2015-03-26 02:17  Astyle\doc\subversion.html
     文件        5541  2015-03-26 02:17  Astyle\doc\vsinstall.html
     文件      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个文件信息

评论

共有 条评论