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

Antoine Pitrou solipsis at pitrou.net
Tue Oct 26 11:44:38 CEST 2010

> >>> Why not make the code generators smarter?
> I don't see a way to work around the
> limitation without starting every single wrapper object's .__init__()
> with a test routine that checks the parameters in Python - and that's
> not really feasible since it would kill performance.

Have you considered that having 200 or 300 keyword arguments might
already kill performance? I don't think our function invocation code is
tuned for such a number.

> Cesare already posted a patch based on using EXTENDED_ARG. Should we
> reopen that old ticket or create a new one ?

Was there an old ticket open? I have only seen a piece of code on
python-ideas. Regardless, whether one or the other doesn't really
matter, as long as it's recorded somewhere :)



More information about the Python-ideas mailing list