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 georg.brandl
Recipients carsten.klein, docs@python, georg.brandl
Date 2011-04-07.09:50:47
SpamBayes Score 0.0039290367
Marked as misclassified No
Message-id <1302169847.86.0.805690528451.issue11789@psf.upfronthosting.co.za>
In-reply-to
Content
This doesn't work as you show.  What you probably meant was something like this:

class InterfaceBase(type):
    ...

Interface = InterfaceBase('Interface', (), {})

class IFoo(Interface):
    ...


which you can just as well do by using normal metaclass syntax.
History
Date User Action Args
2011-04-07 09:50:47georg.brandlsetrecipients: + georg.brandl, docs@python, carsten.klein
2011-04-07 09:50:47georg.brandlsetmessageid: <1302169847.86.0.805690528451.issue11789@psf.upfronthosting.co.za>
2011-04-07 09:50:47georg.brandllinkissue11789 messages
2011-04-07 09:50:47georg.brandlcreate