This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author carsten.klein
Recipients carsten.klein, docs@python
Date 2011-04-06.21:55:20
SpamBayes Score 0.0017388785
Marked as misclassified No
Message-id <1302126921.15.0.0291977163306.issue11789@psf.upfronthosting.co.za>
In-reply-to
Content
In zope.interface, you have something the following construct:

class InterfaceBase:
  pass

Interface = InterfaceBase()



Using the above Interface as a derivation base for your own classes, will make that instance a type derived class:

class IFoo(Interface):
  pass

type(IFoo)
-> Interface

type(Interface)
-> type


I wonder why this behavior is not documented in the official documentation, or at least, I was unable to find it there...
History
Date User Action Args
2011-04-06 21:55:21carsten.kleinsetrecipients: + carsten.klein, docs@python
2011-04-06 21:55:21carsten.kleinsetmessageid: <1302126921.15.0.0291977163306.issue11789@psf.upfronthosting.co.za>
2011-04-06 21:55:20carsten.kleinlinkissue11789 messages
2011-04-06 21:55:20carsten.kleincreate