Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Private Attributes
abc.abstractclassmethod Class Reference
Inheritance diagram for abc.abstractclassmethod:
Inheritance graph
[legend]
Collaboration diagram for abc.abstractclassmethod:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__

Public Attributes

PyObject_HEAD PyObjectcm_callable

Static Private Attributes

 __isabstractmethod__ = True

Detailed Description

A decorator indicating abstract classmethods.

Similar to abstractmethod.

Usage:

    class C(metaclass=ABCMeta):
        @abstractclassmethod
        def my_abstract_classmethod(cls, ...):
            ...

Definition at line 28 of file abc.py.


Constructor & Destructor Documentation

def abc.abstractclassmethod.__init__ (   self,
  callable 
)

Definition at line 43 of file abc.py.

00043 
00044     def __init__(self, callable):
00045         callable.__isabstractmethod__ = True
00046         super().__init__(callable)
00047 

Here is the caller graph for this function:


Member Data Documentation

Definition at line 41 of file abc.py.

Definition at line 716 of file funcobject.c.


The documentation for this class was generated from the following file: