✘namedtuples overly limited

Gary E. Miller gem at rellim.com
Fri Sep 9 05:10:09 UTC 2016

Yo All!

2nd Python undocumented limitation:


namedtuples makes no mention of a limitation on the number of elements in
a namedtuple.


>>> 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)

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