[Python-bugs-list] [ python-Bugs-420502 ] seek/tell beyond eof without exceptions
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 01 May 2001 10:40:16 -0700
Bugs item #420502, was updated on 2001-05-01 10:40
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=420502&group_id=5470
Category: Python Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Grzegorz Makarewicz (mpmak)
Assigned to: Nobody/Anonymous (nobody)
Summary: seek/tell beyond eof without exceptions
Initial Comment:
Methods from FileObject like seek/tell doesn`t check
for errno value. The result is that python exceptions
aren`t throwned.
Small example:
import sys
SEEK_END = 2
def main():
fp=open(sys.argv[0],'rb')
fp.seek(0,SEEK_END)
off = fp.tell()
fp.seek(off,SEEK_END)
x = fp.tell()
print 'tell?',x
main()
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=420502&group_id=5470