| Home | Trees | Index | Help |
|---|
object --+
|
ObjectSpecificationDescriptorPy
Implement the __providedBy__ attribute
The __providedBy__ attribute computes the interfaces peovided by
an object.
| Method Summary | |
|---|---|
Get an object specification for an object | |
| Inherited from object | |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
Return hash(x)... | |
Return a new object with type S, a subtype of T... | |
helper for pickle | |
helper for pickle | |
Return repr(x)... | |
x.__setattr__('name', value) <==> x.name = value | |
Return str(x)... | |
| Method Details |
|---|
__get__(self, inst, cls)Get an object specification for an object For example: >>> from gnue.navigator.external.zope.interface import Interface >>> class IFoo(Interface): pass ... >>> class IFooFactory(Interface): pass ... >>> class C(object): ... implements(IFoo) ... classProvides(IFooFactory) >>> [i.getName() for i in C.__providedBy__] ['IFooFactory'] >>> [i.getName() for i in C().__providedBy__] ['IFoo'] |
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Sun Nov 30 23:03:54 2008 | http://epydoc.sf.net |