File size error in os.stat with large files.
François Pinard
pinard at iro.umontreal.ca
Tue Jul 9 18:51:21 EDT 2002
[John Hunter]
> >>> fd = open('somefile.dat', 'rw')
> >>> fd.tell()
> 0L
> If it returns '0', LFS is not enabled. if it returns '0L', LFS is enabled.
Clever. Yet it seems that, in the long run, Python evoluation plan is to
abolish user-visible distinction between usual integers and long integers.
So I wonder if, despite the trick above might work for some while, it is
really safe relying on it for programs meant to live a looong life :-).
I do not know, but am wondering.
--
François Pinard http://www.iro.umontreal.ca/~pinard
More information about the Python-list
mailing list