[issue5816] Simplify parsing of complex numbers and make complex('inf') valid.

Mark Dickinson report at bugs.python.org
Fri Apr 24 14:50:35 CEST 2009


Mark Dickinson <dickinsm at gmail.com> added the comment:

Backported to trunk in r71824.

Leaving open, as I now need forward port some bits of r71824 which
weren't in the r71818 checkin.

Note that with this change, some strings which were previously accepted 
by the complex constructor are no longer accepted.  Examples are:

'1..1j'
'1.11.1j'
'1e1.1j'

I consider this to be a bugfix:  I can't imagine that acceptance of 
those strings was intentional.  However, strings like:

'j'
'-j'
'4-j'

continue to be accepted.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5816>
_______________________________________


More information about the Python-bugs-list mailing list