[Python-3000] On PEP 3116: new I/O base classes

Bill Janssen janssen at parc.com
Wed Jun 20 03:46:50 CEST 2007


> How would I seek to EOF with your proposal? seek(-0)?

Good point.  Though I just grepped all my Python sources, and I never
do that, so presumably the obvious workaround of

   seek_eof = lambda fp: fp.seek(-1), fp.nudge(+1)

would be OK for that case.

Bill


More information about the Python-3000 mailing list