On 07/18/2017 09:09 AM, Guido van Rossum wrote:
On Tue, Jul 18, 2017 at 8:56 AM, Ethan Furman wrote:
I certainly don't expect the signature to change, but why is using a metaclass
out? The use (or not) of a metaclass
/is/ an implementation detail.
It is until you try to subclass with another metaclass -- then you have a
metaclass conflict. If the namedtuple had no
metaclass this would not be a conflict. (This is one reason to love class
decorators.)
Ah, so metaclasses are leaky implementation details. Makes sense.
--
~Ethan~
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/