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 <rep...@bugs.python.org>
<http://bugs.python.org/issue17044>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to