Message125804
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... |
|
Date |
User |
Action |
Args |
2011-01-08 23:32:13 | kerio | set | recipients:
+ kerio |
2011-01-08 23:32:13 | kerio | set | messageid: <1294529533.15.0.442078735636.issue10868@psf.upfronthosting.co.za> |
2011-01-08 23:32:11 | kerio | link | issue10868 messages |
2011-01-08 23:32:11 | kerio | create | |
|