Ned Deily added the comment:

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'.

----------
nosy: +ned.deily
resolution:  -> works for me
stage:  -> committed/rejected
status: open -> closed
type: behavior -> 

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15644>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to