Author kerio
Recipients kerio
Date 2011-01-08.23:32:11
SpamBayes Score 8.16309e-05
Marked as misclassified No
Message-id <1294529533.15.0.442078735636.issue10868@psf.upfronthosting.co.za>
In-reply-to
Content
If we make ABCMeta.register() return the registered class, like atexit.register() does for the registered function, we can then use it as a decorator:

Now:

class Foo:
    ...
ABarC.register(Foo)

With this change:

@ABarC.register
class Foo:
    ...

The only problem this would cause is in code that relies on ABCMeta.register() to return None; I can't think of a reason anyone would rely on this, but...
History
Date User Action Args
2011-01-08 23:32:13keriosetrecipients: + kerio
2011-01-08 23:32:13keriosetmessageid: <1294529533.15.0.442078735636.issue10868@psf.upfronthosting.co.za>
2011-01-08 23:32:11keriolinkissue10868 messages
2011-01-08 23:32:11keriocreate