[Python-Dev] Two proposed changes to float formatting

Mark Dickinson dickinsm at gmail.com
Sun Apr 26 19:40:44 CEST 2009

On Sun, Apr 26, 2009 at 5:59 PM, Eric Smith <eric at trueblade.com> wrote:
> Mark Dickinson wrote:
>> I propose changing the complex str and repr to behave like the
>> float version.  That is, repr(4. + 10.j) should be "(4.0 + 10.0j)"
>> rather than "(4+10j)".
> I'm +0.5 on this. I'd probably be +1 if I were a big complex user. Also, I'm
> not sure about the spaces around the sign. If we do want the spaces there,

Whoops.  The spaces were a mistake:  I'm not proposing to add those.
I meant "(4.0+10.0j)" rather than "(4.0 + 10.0j)".


More information about the Python-Dev mailing list