[Python-ideas] namedtuple literals [Was: RE a new namedtuple]
Guido van Rossum
guido at python.org
Wed Jul 19 21:08:27 EDT 2017
The proposal in your email seems incomplete -- there's two paragraphs on
the actual proposal, and the entire rest of your email is motivation. That
may be appropriate for a PEP, but while you're working on a proposal it's
probably better to focus on clarifying the spec.
Regarding that spec, I think there's something missing: given a list (or
tuple!) of values, how do you turn it into an 'ntuple'? That seems a common
use case, e.g. when taking database results like row_factory in sqlite3.
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas