Message168177
| 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:52 | ned.deily | set | recipients:
+ ned.deily, umedoblock |
| 2012年08月14日 06:36:52 | ned.deily | set | messageid: <1344926212.37.0.0621820525267.issue15644@psf.upfronthosting.co.za> |
| 2012年08月14日 06:36:51 | ned.deily | link | issue15644 messages |
| 2012年08月14日 06:36:51 | ned.deily | create |
|