[issue5816] Simplify parsing of complex numbers and make complex('inf') valid.
report at bugs.python.org
Thu Apr 23 12:02:25 CEST 2009
Eric Smith <eric at trueblade.com> added the comment:
Wow, that does greatly simplify printing. One nit: the variable named
'im' isn't needed any more, you could just use 'pim'. Not sure if the
asymmetry with 're' and 'pre' is worthwhile, though.
Mark Dickinson wrote:
> 6. Change PyOS_ascii_strtod to always output a sign when requested,
> even for nans. As far as I can tell, the complex formatting is
> the only place that's affected by this. Eric?
That's correct. It might make a difference when fixing issue 4482,
though, at least for the %-formatting case. So if you're going to check
this in, sooner is better than later for me.
Also, could this be backported to 2.7, so that 4482 can be fixed the
same way in both versions?
title: Simplify parsing of complex numbers and make complex('inf') valid. -> Simplify parsing of complex numbers and make complex('inf') valid.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list