[Python-3000] iostack, second revision

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Sep 12 06:36:01 CEST 2006


Anders J. Munch wrote:
> any file that supports seeking to the end will also support
> reporting the file size.  Thus
>   f.seek(f.length)
> should suffice,

Although the micro-optimisation circuit in my
brain complains that it will take 2 system
calls when it could be done with 1...

-- 
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | Carpe post meridiem!          	  |
Christchurch, New Zealand	   | (I'm not a morning person.)          |
greg.ewing at canterbury.ac.nz	   +--------------------------------------+


More information about the Python-3000 mailing list