Numpy compatibility issue (python 2.6)

bruno bruno.simmenauer at
Wed Apr 29 14:18:48 CEST 2009

It seems that some TypeError messages have changed between versions
2.5 and 2.6, e.g.:

from math import radians
radians ()

in 2.5, this leads to "radians () takes exactly 1 argument (0 given)"
whereas in 2.6, the message is now: "radians () takes exactly one
argument (0 given)"

I agree that the two messages do have quite similar meanings, but the
2.6 message can no longer be "interpreted" by the _get_nargs function
(in numpy/lib/ As a result, you can no longer define
(same example):
v_radians = numpy.vectorize (radians)

Anyone already confronted to this problem?

Thanks in advance...

More information about the Python-list mailing list