Message262936
[Observed by one of my colleagues]
The locale.str docstring currently looks like this (and apparently has been
this way since the dawn of time):
def str(val):
"""Convert float to integer, taking the locale into account."""
The output of str doesn't *look* like an integer on my machine. :-)
Python 2.7.10 |Master 2.1.0.dev1829 (64-bit)| (default, Oct 21 2015, 09:09:19)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.6)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.setlocale(locale.LC_NUMERIC, 'fr_FR')
'fr_FR'
>>> locale.str(34.56)
'34,56' |
|
Date |
User |
Action |
Args |
2016-04-06 07:29:49 | mark.dickinson | set | recipients:
+ mark.dickinson, docs@python |
2016-04-06 07:29:49 | mark.dickinson | set | messageid: <1459927789.02.0.138982751213.issue26699@psf.upfronthosting.co.za> |
2016-04-06 07:29:48 | mark.dickinson | link | issue26699 messages |
2016-04-06 07:29:47 | mark.dickinson | create | |
|