[Python-ideas] a new namedtuple
ethan at stoneleaf.us
Tue Jul 18 17:58:33 EDT 2017
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.
More information about the Python-ideas