This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients Retro, eric.smith, mark.dickinson
Date 2010-12-04.12:30:21
SpamBayes Score 3.0171234e-06
Marked as misclassified No
Message-id <1291465826.59.0.00736159073404.issue10621@psf.upfronthosting.co.za>
In-reply-to
Content
I agree. It would be nice, but the impact on existing code is too large. I can easily imagine someone parsing the output of "print(somecomplexnumber)" and not considering spaces.

For the record, it would require changing complex.__repr__  (which is also complex.__str__) and complex.__format__.

Now that I look at the code, it seems that complex_format is only called from one place (complex_repr), with fixed parameters. It could be moved into complex_repr for what I think is a small improvement in readability.
History
Date User Action Args
2010-12-04 12:30:26eric.smithsetrecipients: + eric.smith, mark.dickinson, Retro
2010-12-04 12:30:26eric.smithsetmessageid: <1291465826.59.0.00736159073404.issue10621@psf.upfronthosting.co.za>
2010-12-04 12:30:21eric.smithlinkissue10621 messages
2010-12-04 12:30:21eric.smithcreate