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 eric.smith, mark.dickinson, scientist47
Date 2009-09-28.09:12:37
SpamBayes Score 1.4181427e-07
Marked as misclassified No
Message-id <1254129160.39.0.379627479783.issue7010@psf.upfronthosting.co.za>
In-reply-to
Content
This is expected (and correct) behaviour for Python 2.x and 3.0.  Note
that the first example calls .1.__str__, while the second calls .1.__repr__.

Python 2.6.2 (r262:71600, Aug 26 2009, 09:40:44)
[GCC 4.2.1 (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> str(.1)
'0.1'
>>> repr(.1)
'0.10000000000000001'
>>> str((.1,))
'(0.10000000000000001,)'
>>> tuple(str(x) for x in (.1,))
('0.1',)
History
Date User Action Args
2009-09-28 09:12:43mark.dickinsonsetrecipients: + mark.dickinson, eric.smith, scientist47
2009-09-28 09:12:40mark.dickinsonsetmessageid: <1254129160.39.0.379627479783.issue7010@psf.upfronthosting.co.za>
2009-09-28 09:12:38mark.dickinsonlinkissue7010 messages
2009-09-28 09:12:37mark.dickinsoncreate