[issue12161] StringIO AttributeError instead of ValueError after close..

2011-05-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 720804a91c01 by Benjamin Peterson in branch '2.7': raise an ValueError in getvalue() on closed StringIO (closes #12161) http://hg.python.org/cpython/rev/720804a91c01 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected s

[issue12161] StringIO AttributeError instead of ValueError after close..

2011-05-26 Thread Petri Lehtinen
Petri Lehtinen added the comment: I tested the patch on current 2.7 tip. It works and looks good to me. -- nosy: +benjamin.peterson, petri.lehtinen, pitrou, stutzbach ___ Python tracker ___

[issue12161] StringIO AttributeError instead of ValueError after close..

2011-05-25 Thread Catalin Iacob
Catalin Iacob added the comment: Attached patch + test case. Also tested cStringIO in 2.7 and io.StringIO in 3.2 and 3.3 tip and they aren't affected. -- keywords: +patch nosy: +catalin.iacob Added file: http://bugs.python.org/file22116/12161.patch ___

[issue12161] StringIO AttributeError instead of ValueError after close..

2011-05-23 Thread alejandro david weil
New submission from alejandro david weil : python 2.7 documentation: file:///usr/share/doc/python-doc/html/library/stringio.html#StringIO.StringIO.close (or: http://docs.python.org/library/stringio.html#StringIO.StringIO.close ) says: """StringIO.close() Free the memory buffer. Attempting to