[Python-3000] encoding hell

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Sep 4 01:11:34 CEST 2006

Fredrik Lundh wrote:

> that's how seek/tell works on text files in today's Python, of course. 
> if you're writing portable code, you can only seek to the beginning or 
> end of the file, or to a position returned to you by tell.

True, but with arbitrary stacks of stream-transforming
objects the value might need to be even more opaque,
since it might need to encapsulate internal states of
decoders, etc. Could be very messy.


More information about the Python-3000 mailing list