[New-bugs-announce] [issue8042] mmap buffer implementation does not respect seek pos
Matt Gattis
report at bugs.python.org
Tue Mar 2 22:26:06 CET 2010
New submission from Matt Gattis <gattis at gmail.com>:
If you do:
import io,mmap
b = io.BytesIO("abc")
m = mmap.mmap(-1,10)
m.seek(5)
b.readinto(m)
M is now:
'abc\x00\x00\x00\x00\x00\x00\x00'
Basically there is no way to readinto/recv_into an arbitary position in an mmap object without creating a middle-man string.
----------
messages: 100308
nosy: Matt.Gattis
severity: normal
status: open
title: mmap buffer implementation does not respect seek pos
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8042>
_______________________________________
More information about the New-bugs-announce
mailing list