[Numpy-discussion] NotImplemented string in clip not transformed into exception ?

David Cournapeau david@ar.media.kyoto-u.ac...
Mon Mar 9 10:49:50 CDT 2009


Hi,

    While fixing a segfault in clip, I noticed a strange behavior:

import numpy as np
# Print NotImplemented, but does not raise any exception
a = np.complex128().clip('rrr', 1)

Where is this string output coming from ? From numpy or python ? How can
I transform this into a proper exception ?

cheers,

David


More information about the Numpy-discussion mailing list