From 4f21f985eb09026faa11b7d9580d309c17c05373 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 30 Nov 2008 03:07:33 +0000 Subject: [PATCH] StringIO.close() stops you from using the buffer, too --- Doc/library/stringio.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/stringio.rst b/Doc/library/stringio.rst index 4736fc3a7c7..19e15473fdf 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::