On Tue, Sep 7, 2010 at 11:09 PM, Antoine Pitrou <solip...@pitrou.net> wrote: > On Tue, 7 Sep 2010 23:01:17 +1000 > Nick Coghlan <ncogh...@gmail.com> wrote: >> > + # After the buffer gets released, we can resize the BytesIO again >> > + del buf >> > + support.gc_collect() >> > + 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
Yeah, I didn't even think to check if you'd already put that up there. I've now closed 9789 as a duplicate of that issue. Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com