]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
StringIO.close() stops you from using the buffer, too
authorBenjamin Peterson <benjamin@python.org>
Sun, 30 Nov 2008 03:07:33 +0000 (03:07 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 30 Nov 2008 03:07:33 +0000 (03:07 +0000)
Doc/library/stringio.rst

index 4736fc3a7c733986d3b76b9cf62f4b6bedfd489d..19e15473fdf17edb848b49745fb3a08c1b05bbc7 100644 (file)
@@ -37,7 +37,8 @@ The following methods of :class:`StringIO` objects require special mention:
 
 .. method:: StringIO.close()
 
-   Free the memory buffer.
+   Free the memory buffer.  Attempting to do further operations with a closed
+   :class:`StringIO` object will raise a :exc:`ValueError`.
 
 Example usage::