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 mark.dickinson
Recipients docs@python, mark.dickinson
Date 2016-04-06.07:29:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1459927789.02.0.138982751213.issue26699@psf.upfronthosting.co.za>
In-reply-to
Content
[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'
History
Date User Action Args
2016-04-06 07:29:49mark.dickinsonsetrecipients: + mark.dickinson, docs@python
2016-04-06 07:29:49mark.dickinsonsetmessageid: <1459927789.02.0.138982751213.issue26699@psf.upfronthosting.co.za>
2016-04-06 07:29:48mark.dickinsonlinkissue26699 messages
2016-04-06 07:29:47mark.dickinsoncreate