This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients ced, eric.smith, matrixise, terry.reedy, vstinner
Date 2015-11-06.23:43:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1446853429.23.0.0117479347727.issue25543@psf.upfronthosting.co.za>
In-reply-to
Content
I much prefer a new argument, 'strict=False', to a new, near-duplicate function.

locale.atof('2.500,5') should raise.  The only question is what should be displayed as the invalid literal: the original or the converted.  It seems to me that delocalize should replace the local thousands separator, in this case '.', with ',' as it replaces the local decimal point with '.'.  Then the invalid literal would be '1,234.5'.  And locale.atof('1.5') would become float('1,5'), which would raise.
History
Date User Action Args
2015-11-06 23:43:49terry.reedysetrecipients: + terry.reedy, vstinner, eric.smith, ced, matrixise
2015-11-06 23:43:49terry.reedysetmessageid: <1446853429.23.0.0117479347727.issue25543@psf.upfronthosting.co.za>
2015-11-06 23:43:49terry.reedylinkissue25543 messages
2015-11-06 23:43:48terry.reedycreate