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, r.david.murray, serhiy.storchaka, sleepycal
Date 2012-12-04.20:06:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1354651595.36.0.945036378668.issue16609@psf.upfronthosting.co.za>
In-reply-to
Content
It is notable that this behaviour isn't described anywhere that I can find in the library manual or the reference manual.  As David says, it applies only to 2.7;  in 3.2 and later, `str` and `repr` are identical.

> a glossary entry be added for 'floating point' which mentions it as a
> 2.7 limitation

That could work.  I *really* don't think it should be linked to from the random docs, though;  this has absolutely nothing to do with the random module, except that the random module happens to contain functions that can produce floats.  Many other modules do that, too.

Another option would be to add the information somewhere in

http://docs.python.org/2/library/stdtypes.html#numeric-types-int-float-long-complex
History
Date User Action Args
2012-12-04 20:06:35mark.dickinsonsetrecipients: + mark.dickinson, r.david.murray, docs@python, sleepycal, serhiy.storchaka
2012-12-04 20:06:35mark.dickinsonsetmessageid: <1354651595.36.0.945036378668.issue16609@psf.upfronthosting.co.za>
2012-12-04 20:06:35mark.dickinsonlinkissue16609 messages
2012-12-04 20:06:35mark.dickinsoncreate