[IronPython] Issues with the OptimizedFunctionAny
Jonathan Jacobs
korpse-ironpython at kaydash.za.net
Sun Apr 2 11:05:56 CEST 2006
Hi,
I've stumbled across this interesting behaviour:
>>> p = ((1, 2),)
>>> zip(*(p * 10))
[(1, 1, 1, 1, 1, 1, 1, 1, 1, 1), (2, 2, 2, 2, 2, 2, 2, 2, 2, 2)]
>>> zip(*(p * 10))
Traceback (most recent call last):
File , line 0, in input##10
TypeError: zip() takes at most 0 arguments (10 given)
Upon the first-time calling the method it is a "ReflectedMethod" object, this
is then optimized (compiled?) to an "OptimizedFunctionAny" object somewhere
along the line, which appears to have problems accepting more than 5
parameters (according to the source code, anyway.)
This seems like a pretty serious issue. Is there any way I can get around it
in the meanwhile?
Regards
--
Jonathan
When you meet a master swordsman,
show him your sword.
When you meet a man who is not a poet,
do not show him your poem.
-- Rinzai, ninth century Zen master
More information about the Ironpython-users
mailing list