[issue15488] Closed files keep their buffer alive

2012-10-04 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- keywords: +patch Added file: http://bugs.python.org/file27413/53aa92a70127.diff ___ Python tracker ___ ___

[issue15488] Closed files keep their buffer alive

2012-10-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4141c36954cd by Jesus Cea in branch 'default': Closes #15488: Closed files keep their buffer alive http://hg.python.org/cpython/rev/4141c36954cd -- nosy: +python-dev resolution: -> fixed stage: patch review -> committed/rejected status: ope

[issue15488] Closed files keep their buffer alive

2012-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: This has to wait for 3.4, since it's an enhancement, not a bug. -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___

[issue15488] Closed files keep their buffer alive

2012-08-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Agree with Meador. -- nosy: +storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue15488] Closed files keep their buffer alive

2012-07-31 Thread Meador Inge
Meador Inge added the comment: The test should go in the 'SizeofTest' class and maybe a better test would be a variant of the test already in that class: @support.cpython_only def test_buffer_freeing(self) : bufsize = 4096 rawio = self.MockRawIO() bufio = self.tp

[issue15488] Closed files keep their buffer alive

2012-07-31 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Please, review patch -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing

[issue15488] Closed files keep their buffer alive

2012-07-31 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Added file: http://bugs.python.org/file26638/a16403affccd ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue15488] Closed files keep their buffer alive

2012-07-31 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- versions: -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue15488] Closed files keep their buffer alive

2012-07-31 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I take care of this. -- assignee: -> jcea hgrepos: +143 ___ Python tracker ___ ___ Python-bugs-lis

[issue15488] Closed files keep their buffer alive

2012-07-31 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue15488] Closed files keep their buffer alive

2012-07-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: Sounds reasonable to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15488] Closed files keep their buffer alive

2012-07-29 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue15488] Closed files keep their buffer alive

2012-07-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +benjamin.peterson, hynek, stutzbach ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue15488] Closed files keep their buffer alive

2012-07-29 Thread Antoine Pitrou
New submission from Antoine Pitrou: >>> f = open("LICENSE", "rb") >>> sys.getsizeof(f) 4296 >>> f.close() >>> sys.getsizeof(f) 4296 Instead of waiting for the file object's deallocation, perhaps we should free the buffer when it is closed? -- components: IO, Library (Lib) messages: 166