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 pitrou
Recipients Matt.Gattis, georg.brandl, pitrou
Date 2010-08-02.16:49:42
SpamBayes Score 0.00383832
Marked as misclassified No
Message-id <>
If you want to slice into a writable buffer, you can use a memoryview:

>>> b = io.BytesIO(b"abc")
>>> m = mmap.mmap(-1, 10)
>>> b.readinto(memoryview(m)[5:])
>>> m[:]

This only works on 3.x, though.
As for changing the mmap buffer implementation, it would break compatibility and is therefore not acceptable, sorry.
Date User Action Args
2010-08-02 16:49:44pitrousetrecipients: + pitrou, georg.brandl, Matt.Gattis
2010-08-02 16:49:43pitrousetmessageid: <>
2010-08-02 16:49:42pitroulinkissue8042 messages
2010-08-02 16:49:42pitroucreate