[Python-Dev] Impact of Namedtuple on startup time
Ethan Furman
ethan at stoneleaf.us
Mon Jul 17 19:10:16 EDT 2017
More information about the Python-Dev mailing list
Mon Jul 17 19:10:16 EDT 2017
- Previous message (by thread): [Python-Dev] Impact of Namedtuple on startup time
- Next message (by thread): [Python-Dev] Impact of Namedtuple on startup time
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 07/17/2017 02:26 PM, Barry Warsaw wrote: > namedtuple is great and clever, but it’s also a bit clunky. It has a weird > signature and requires a made up type name. It’s also rather unPythonic if > you want to support default arguments when creating namedtuple instances. > Maybe as you say, a lot of the typical use cases for namedtuples could be > addressed by a better builtin, but I fear we’ll end up down the bikeshedding > hole for that. My aenum library [1] has a metaclass-based NamedTuple that allows for default arguments as well as other goodies (which would probably not make it to the stdlib since they are mostly fluff). -- ~Ethan~ [1] https://pypi.python.org/pypi/aenum
- Previous message (by thread): [Python-Dev] Impact of Namedtuple on startup time
- Next message (by thread): [Python-Dev] Impact of Namedtuple on startup time
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list