[issue17044] Implement PEP 422: Simple class initialisation hook
Eric Snow
report at bugs.python.org
Thu Mar 14 22:04:13 CET 2013
Eric Snow added the comment:
> Given that, it is probably also better to revert the namespace keyword
> to accepting an instance rather than a factory function, since the copy
> operation after execution of the class body is automatic.
Agreed. Of course, the related note is rendered superfluous. There is still the possibility of reusing the same namespace across successive class definitions, with the associated consequences. However, since type.__new__() copies the namespace into a new dict, it mitigates the main concern: implicit modification to an existing class in the definition of another.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17044>
_______________________________________
More information about the Python-bugs-list
mailing list