mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
StringIO.close() stops you from using the buffer, too
This commit is contained in:
parent
2a1fd05971
commit
4f21f985eb
1 changed files with 2 additions and 1 deletions
|
@ -37,7 +37,8 @@ The following methods of :class:`StringIO` objects require special mention:
|
||||||
|
|
||||||
.. method:: StringIO.close()
|
.. 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::
|
Example usage::
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue