Orbits  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
Classes | Functions | Variables
abc Namespace Reference

Classes

class  _C
 
class  abstractproperty
 
class  ABCMeta
 

Functions

def abstractmethod
 

Variables

tuple _InstanceType = type(_C())
 

Function Documentation

def abc.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, ...):
            ...

Variable Documentation

tuple abc._InstanceType = type(_C())

Copyright 2014 Google Inc. All rights reserved.