From: Benjamin Peterson Date: Sun, 30 Nov 2008 03:07:33 +0000 (+0000) Subject: StringIO.close() stops you from using the buffer, too X-Git-Tag: v2.7a1~2606 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f21f985eb09026faa11b7d9580d309c17c05373;p=thirdparty%2FPython%2Fcpython.git StringIO.close() stops you from using the buffer, too --- diff --git a/Doc/library/stringio.rst b/Doc/library/stringio.rst index 4736fc3a7c73..19e15473fdf1 100644 --- a/Doc/library/stringio.rst +++ b/Doc/library/stringio.rst @@ -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::