[New-bugs-announce] [issue46183] float function errors on negative number string with comma seperator ex: '-1, 234.0'

syed shah report at bugs.python.org
Sun Dec 26 11:10:13 EST 2021


New submission from syed shah <jj.github.jj at gmail.com>:

>>> float ('-1,234')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: could not convert string to float: '-1,234'

----------
components: Library (Lib)
messages: 409202
nosy: jj.github.jj
priority: normal
severity: normal
status: open
title: float function errors on negative number string with comma seperator ex: '-1,234.0'
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46183>
_______________________________________


More information about the New-bugs-announce mailing list