Eric Smith <e...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue5816> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com