stdin - seek() issue on Linux.

Donn Cave donn at drizzle.com
Wed Apr 24 23:06:32 EDT 2002


Quoth pj at engr.sgi.com (Paul Jackson):
| The seek semantics are lower than the stdio package.  They are
| found in the semantics of the kernel.  Look at the open(2)
| and lseek(2) man pages on most any Unix or Linux or Posix
| emulation thereof.

True, and it's probably not a coincidence, since C and UNIX
are historically related.  But C is much more widely supported
than just UNIX or POSIX 1003.  Whatever seek means in Python,
it inherits that meaning from C fseek (or whatever 64-bit
alternative the platform supports, fseeko etc.)

	Donn Cave, donn at drizzle.com



More information about the Python-list mailing list