Jean-Michel Pichavant a écrit :
Scott David Daniels wrote:
(snip)
But there _is_ one moment when you can check those things, then avoid checking thereafter: object creation. So you can complicate your __init__ (or __new__) with those checks that make sure you instantiate only fully defined subclasses:
That's something I'd rather do in a custom metaclass. But YMMV, of course... -- http://mail.python.org/mailman/listinfo/python-list