Package harold :: Package prog :: Module _deftracker :: Class DefinitionsTracker
[show private | hide private]
[frames | no frames]

Type DefinitionsTracker

object --+    
         |    
      type --+
             |
            DefinitionsTracker

Known Subclasses:
InterfaceClass, NsAwareClass

A class keeping track, in its _definitions attribute, of the superclasses defining each of its inherited methods.
Method Summary
  __init__(cls, cls_name, direct_superclasses, direct_members)
  _definitions(self, name)
Return a tuple of the superclasses defining the named member.
    Inherited from type
  __call__(x, ...)
x.__call__(...) <==> x(...)
  __cmp__(x, y)
x.__cmp__(y) <==> cmp(x,y)
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
list of immediate subclasses __subclasses__()
__subclasses__() -> list of immediate subclasses
list mro()
return a type's method resolution order
    Inherited from object
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
    Inherited from type
tuple __bases__ = (<type 'object'>,)
int __basicsize__ = 420                                                                   
int __dictoffset__ = 132                                                                   
int __flags__ = 21995                                                                 
int __itemsize__ = 20                                                                    
tuple __mro__ = (<type 'type'>, <type 'object'>)
str __name__ = 'type'
int __weakrefoffset__ = 184                                                                   

Method Details

_definitions(self, name=None)

Return a tuple of the superclasses defining the named member.

If name is None or not given, a dict of the lists is returned.

The following points are important:
  • of two related superclass (i.e. one is a subclass of the other), only the most specific (i.e. the subclass) is in _definitions.
  • the order of the tuple is the same order as this classe's mro.

Generated by Epydoc 2.1 on Mon Dec 18 15:25:58 2006 http://epydoc.sf.net