[issue29602] complex() on object with __complex__ function loses sign of zero imaginary part
STINNER Victor
report at bugs.python.org
Mon Feb 20 09:43:14 EST 2017
STINNER Victor added the comment:
IMHO it would be less surprising if repr(complex) would return 'complex(..., ...)': it would be possible to copy/paste and get the result value. I was bitten multiple time by the zero sign with complex numbers...
----------
nosy: +haypo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29602>
_______________________________________
More information about the Python-bugs-list
mailing list