[Python-Dev] Small question about BufferedRandom spec (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Tue Jan 6 15:17:09 CET 2009
- Previous message: [Python-Dev] Small question about BufferedRandom spec
- Next message: [Python-Dev] issue 3582
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Guido van Rossum <guido python.org> writes:
However, the semantics of interleaving reads and writes, with and without seek calls in between, should be well-defined and correct/useful, so that it behaves the same regardless of the buffer size.
Yes, the goal is to have reasonably intuitive, and meaningful, semantics.
Ditto for the flush call currently implied by a seek -- if you can satisfy the seek by moving where you are in the buffer without flushing, that's fine IMO, but it should be well documented.
That's also part of what I've tried to optimize. The documentation is currently in the limbs, though.
Thanks!
Antoine.
- Previous message: [Python-Dev] Small question about BufferedRandom spec
- Next message: [Python-Dev] issue 3582
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]