[issue18896] Remove namedtuple 255 arguments restriction

Alori report at bugs.python.org
Sat Aug 31 21:33:38 CEST 2013


Alori added the comment:

@pitrou:
Thank you for your answer.
I agree they should not replace databases or files, but I think 255 is just way too lightweight. It feels unnatural to have this limitation for no specific reason. 

Recently, I've seen a lot of solutions that emulate the namedtuple functionality with some classes in order to workaround this issue, but they all feel "forced" and require some unsavory hacks.

I think namedtuple is one the most useful structures in the language, and like tuples and dicts, shouldn't be limited by design.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18896>
_______________________________________


More information about the Python-bugs-list mailing list