
Oct. 26, 2010
9:44 a.m.
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 :) Regards Antoine.