Message123341
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. |
|
Date |
User |
Action |
Args |
2010-12-04 12:30:26 | eric.smith | set | recipients:
+ eric.smith, mark.dickinson, Retro |
2010-12-04 12:30:26 | eric.smith | set | messageid: <1291465826.59.0.00736159073404.issue10621@psf.upfronthosting.co.za> |
2010-12-04 12:30:21 | eric.smith | link | issue10621 messages |
2010-12-04 12:30:21 | eric.smith | create | |
|