[pypy-issue] [issue1544] numpypy: complex(complex128)

Romain Guillebert tracker at bugs.pypy.org
Thu Aug 15 17:33:59 CEST 2013

Romain Guillebert <romain.py at gmail.com> added the comment:

216         # no '__complex__' method, so we assume it is a float,
217         # unless it is an instance of some subclass of complex.
218         if isinstance(w_complex, W_ComplexObject):
219             return (w_complex.realval, w_complex.imagval)

This is the place that should handle the complex128 box, but it doesn't because 
complex128 is an instance of complex at applevel and not at interplevel.

assignedto:  -> rguillebert

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list