[Python-Dev] r84562 - in python/branches/py3k: Doc/library/io.rst Lib/_pyio.py Lib/test/test_memoryio.py Misc/NEWS Modules/_io/_iomodule.c Modules/_io/_iomodule.h Modules/_io/bytesio.c (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Tue Sep 7 15:09:34 CEST 2010
- Previous message: [Python-Dev] [Python-checkins] r84562 - in python/branches/py3k: Doc/library/io.rst Lib/_pyio.py Lib/test/test_memoryio.py Misc/NEWS Modules/_io/_iomodule.c Modules/_io/_iomodule.h Modules/_io/bytesio.c
- Next message: [Python-Dev] r84562 - in python/branches/py3k: Doc/library/io.rst Lib/_pyio.py Lib/test/test_memoryio.py Misc/NEWS Modules/_io/_iomodule.c Modules/_io/_iomodule.h Modules/_io/bytesio.c
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, 7 Sep 2010 23:01:17 +1000 Nick Coghlan <ncoghlan at gmail.com> wrote:
> + # After the buffer gets released, we can resize the BytesIO again > + del buf > + support.gccollect() > + memio.truncate()
I've raised an RFE (http://bugs.python.org/issue9789) to point out that the need for that GC collect call in there to make the test portable to other implementations is rather ugly and supporting an explicit "buf.release()" call may be a nicer option.
There was already an issue open for the context management option: http://bugs.python.org/issue9757
Regards
Antoine.
- Previous message: [Python-Dev] [Python-checkins] r84562 - in python/branches/py3k: Doc/library/io.rst Lib/_pyio.py Lib/test/test_memoryio.py Misc/NEWS Modules/_io/_iomodule.c Modules/_io/_iomodule.h Modules/_io/bytesio.c
- Next message: [Python-Dev] r84562 - in python/branches/py3k: Doc/library/io.rst Lib/_pyio.py Lib/test/test_memoryio.py Misc/NEWS Modules/_io/_iomodule.c Modules/_io/_iomodule.h Modules/_io/bytesio.c
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]