homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ned.deily
Recipients ned.deily, umedoblock
Date 2012年08月14日.06:36:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1344926212.37.0.0621820525267.issue15644@psf.upfronthosting.co.za>
In-reply-to
Content
The program works as expected. After the first two writes, the buffer contains b'abcdef'. Then the seek(0) moves the stream pointer to the beginning of the buffer and the next write overwrites buffer positions 0 through 2, replacing b'abc' with b'xyz'. So now the buffer is b'xyzdef'. The next read starts at position 3 (following the last byte written), reading b'de'.
History
Date User Action Args
2012年08月14日 06:36:52ned.deilysetrecipients: + ned.deily, umedoblock
2012年08月14日 06:36:52ned.deilysetmessageid: <1344926212.37.0.0621820525267.issue15644@psf.upfronthosting.co.za>
2012年08月14日 06:36:51ned.deilylinkissue15644 messages
2012年08月14日 06:36:51ned.deilycreate

AltStyle によって変換されたページ (->オリジナル) /