Peter Hansen wrote:
Is there some unexpected limit to the number of arguments that may be
passed with the *args format (say, "256 function arguments maximum are
supported by Python"), or is this concern just because of the raw
memory inherently used by the tuple?

In other words, if one is confident that one can whip tuples of the
required size around without using up available memory, would there
still be such a concern about the *args "abuse"?

I'm not aware of any arbitrary limits in that code, since it does pass real tuple objects around. Then again, it's not an area of the code I'm particularly familiar with. . .


However, if there was a limit other than the amount of available memory though, I expect Guido would have said so explicitly. As it is, the concern seems to be that there is a potentially large copy operation triggered by an innocent looking function call.

Cheers,
Nick.

--
Nick Coghlan   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---------------------------------------------------------------
            http://boredomandlaziness.skystorm.net
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to