<div dir="ltr"><div class="gmail_quote">Lie Ryan <span dir="ltr"></span>wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">

On 09/18/10 06:00, Raymond Hettinger wrote:<br>
> The good news is that long argument lists are uncommon.  They<br>
> probably only arise in cases with dynamically created functions and<br>
> classes.  Most people are unaffected.<br>
<br>
</div>How about showing a Warning when trying to create a large namedtuple?<br>
The Warning contains a reference to a bug issue, and should describe<br>
that if they really, really need to have this limitation removed, then<br>
they should ask in the bug report. Just so that we don't complicate the<br>
code unnecessarily without a real usage.<br>
<br>
In Python, classes are largely syntax sugar for a dictionary anyway, if<br>
they needed such a large namedtuple, they should probably reconsider<br>
using dictionary or list or real classes instead.<br></blockquote><div><br>+1 on removing the restriction, just because I find large namedtuples useful.<br><br>I work with large tables of data and often use namedtuples for their compactness. Python dictionaries have a large memory overhead compared to tuples. This restriction could seriously hamper my future efforts to migrate to Python 3.<br>

<br>- Tal Einat<br></div></div></div>