[issue9574] complex does not parse strings containing decimals

Mark Dickinson report at bugs.python.org
Thu Aug 12 09:54:55 CEST 2010


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

Note also that spaces are already allowed immediately inside the parentheses in a string argument to the complex constructor (in python 2.6 and later):


>>> complex("( 1.1+2.1j )")
(1.1000000000000001+2.1000000000000001j)

----------

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


More information about the Python-bugs-list mailing list