[Python-ideas] a new namedtuple

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Jul 18 18:18:13 EDT 2017


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.

For me, the main benefit of using a metaclass would be that
it enables using normal class declaration syntax to define a
namedtuple. That's not just an implementation detail!

-- 
Greg


More information about the Python-ideas mailing list