[Python-ideas] New 3.x restriction on number of keyword arguments

M.-A. Lemburg mal at egenix.com
Tue Oct 26 12:38:44 CEST 2010

Cesare Di Mauro wrote:
> 2010/10/26 M.-A. Lemburg <mal at egenix.com>
>> Antoine Pitrou wrote:
>>> Sure, but in the absence of anyone providing a patch for CPython, it is
>>> still a possible resolution.
>> Cesare already posted a patch based on using EXTENDED_ARG. Should we
>> reopen that old ticket or create a new one ?
>> --
>> Marc-Andre Lemburg
> I can provide another patch that will not use EXTENDED_ARG (no VM changes),
> and uses *args and/or **kwargs function calls when there are more than 255
> arguments or keyword arguments.
> But I need some days.
> If needed, I'll post it at most on this week-end.

You mean a version that pushes the *args tuple and **kws dict
on the stack and then uses those for calling the function/method ?

I think that would be a lot more efficient than pushing/popping
hundreds of parameters on/off the stack.

Marc-Andre Lemburg

Professional Python Services directly from the Source  (#1, Oct 26 2010)
>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/

::: Try our new mxODBC.Connect Python Database Interface for free ! ::::

   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611

More information about the Python-ideas mailing list