[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
- Previous message (by thread): [Python-Dev] TextIO seek and tell cookies
- Next message (by thread): [Python-Dev] TextIO seek and tell cookies
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): [Python-Dev] TextIO seek and tell cookies
- Next message (by thread): [Python-Dev] TextIO seek and tell cookies
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]