✘namedtuples overly limited
Gary E. Miller
gem at rellim.com
Fri Sep 9 05:10:09 UTC 2016
Yo All!
2nd Python undocumented limitation:
https://docs.python.org/2.7/library/collections.html?highlight=namedtuples#collections.namedtuple
namedtuples makes no mention of a limitation on the number of elements in
a namedtuple.
But:
>>> a = collections.namedtuple('a', 'b', 'c', 'd', 'e')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: namedtuple() takes at most 4 arguments (5 given)
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
gem at rellim.com Tel:+1 541 382 8588
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.ntpsec.org/pipermail/devel/attachments/20160908/63b475b2/attachment.bin>
More information about the devel
mailing list