Message107354
> One of the places that the 'L' code *is* used is when parsing
> strange C types (like off_t)
It has unexepected consequences. Example:
>>> x=open("x", "w")
>>> x.seek(0.0)
0.0
>>> x.seek(-0.0)
-0.0
>>> x.seek(0.1)
0.1
>>> x.tell()
0
I think that we should just raise an error in Python 3.2 because I consider this as a bug. It remembers me another bug related to file and float: http://bugs.python.org/issue5080#msg92400 |
|
Date |
User |
Action |
Args |
2010-06-08 21:57:42 | vstinner | set | recipients:
+ vstinner, mark.dickinson |
2010-06-08 21:57:42 | vstinner | set | messageid: <1276034262.58.0.704700895441.issue8950@psf.upfronthosting.co.za> |
2010-06-08 21:57:41 | vstinner | link | issue8950 messages |
2010-06-08 21:57:40 | vstinner | create | |
|