DSM wrote:
ISTM the same reasoning applies equally to complex numbers. My interest
arose because of what I think is a bug in pypy's complex printing:
Python 2.4.1 (pypy 1.0.0 build 56124) on linux2
Type "help", "copyright", "credits" or "license" for more information.
``RPython: we use it
DSM wrote:
From the nothing-is-so-trivial-it's-not-worth-a-usenet-post file:
Shouldn't the default representation of complex numbers be like that of
floats? That is, have a decimal point?
>>> 1
1
>>> 1.0
1.0
>>> 1j
1j
>>> 1.0j
1j
>>> 1.0+1.0j
(1+1j)
In the relevant bit of floatobje
From the nothing-is-so-trivial-it's-not-worth-a-usenet-post file:
Shouldn't the default representation of complex numbers be like that of
floats? That is, have a decimal point?
>>> 1
1
>>> 1.0
1.0
>>> 1j
1j
>>> 1.0j
1j
>>> 1.0+1.0j
(1+1j)
In the relevant bit of floatobject.c, there's