[Python-3000] encoding hell
Greg Ewing
greg.ewing at canterbury.ac.nz
Sun Sep 3 01:06:01 CEST 2006
tomer filiba wrote:
> my solution would be completely leaving seek() and tell() out of the
> 3rd layer -- it's a byte-level operation.
That's what I'd recommend, too. Seeking doesn't make
sense when the underlying units aren't fixed-length.
The best you could do would be to return some kind
of opaque object from tell() that could be passed
back to seek(). But I'm far from convinced that
would be worth the trouble.
--
Greg
More information about the Python-3000
mailing list