[Python-Dev] TextIO seek and tell cookies (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Sep 26 18:43:38 EDT 2016


Ben Leslie wrote:

But the idea of transmitting these offsets outside of a running process is not something that I had anticipated. It got me thinking: is there a guarantee that these opaque values returned from tell() is stable across different versions of Python?

Are they even guaranteed to work on a different file object in the same process? I.e. if you read some stuff from a file, do tell() on it, then close it, open it again and seek() with that token, are you guaranteed to end up at the same place in the file?

-- Greg



More information about the Python-Dev mailing list