Message93196
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',) |
|
Date |
User |
Action |
Args |
2009-09-28 09:12:43 | mark.dickinson | set | recipients:
+ mark.dickinson, eric.smith, scientist47 |
2009-09-28 09:12:40 | mark.dickinson | set | messageid: <1254129160.39.0.379627479783.issue7010@psf.upfronthosting.co.za> |
2009-09-28 09:12:38 | mark.dickinson | link | issue7010 messages |
2009-09-28 09:12:37 | mark.dickinson | create | |
|