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.

classification
Title: Add support for seeking/writing beyond EOF to io.BytesIO
Type: Stage:
Components: Library (Lib) Versions: Python 3.0
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: alexandre.vassalotti, gvanrossum
Priority: normal Keywords: patch

Created on 2007-07-20 17:10 by alexandre.vassalotti, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
overseek-bytesio.patch alexandre.vassalotti, 2007-07-20 17:10
Messages (3)
msg52915 - (view) Author: Alexandre Vassalotti (alexandre.vassalotti) * (Python committer) Date: 2007-07-20 17:10
The patch makes BytesIO inserts null bytes between the current EOF and the new write position.

See discussion on the Python-3000 mailing list:
http://mail.python.org/pipermail/python-3000/2007-June/008592.html
msg52916 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2007-07-21 00:25
Committed revision 56475.

Would you mind adding a unit test for this?
msg52917 - (view) Author: Alexandre Vassalotti (alexandre.vassalotti) * (Python committer) Date: 2007-07-21 00:52
I already have one in my unittests for BytesIO/StringIO in my branch.

  http://svn.python.org/view/python/branches/cpy_merge/Lib/test/test_memoryio.py?rev=56445&view=markup

It is called test_overseek and it is in the PyBytesIOTest class.
History
Date User Action Args
2022-04-11 14:56:25adminsetgithub: 45227
2008-01-06 22:29:45adminsetkeywords: - py3k
versions: + Python 3.0
2007-07-20 17:10:34alexandre.vassalotticreate