summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-04-28 19:57:33 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-04-28 19:57:33 (GMT)
commit689405ee14b5f33d4717b06d258e8dd4f5332f72 (patch)
tree76a96bef85ea5f7fe8e86246f674482d2c8ad8b3
parentece349e51777ebc086c8f194fdb7d20f29daf445 (diff)
downloadcpython-689405ee14b5f33d4717b06d258e8dd4f5332f72.zip
cpython-689405ee14b5f33d4717b06d258e8dd4f5332f72.tar.gz
cpython-689405ee14b5f33d4717b06d258e8dd4f5332f72.tar.bz2
Clarify and fix the documentation for IOBase.close()
-rw-r--r--Doc/library/io.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/library/io.rst b/Doc/library/io.rst
index 9f08c25..4554b1e 100644
--- a/Doc/library/io.rst
+++ b/Doc/library/io.rst
@@ -246,8 +246,10 @@ I/O Base Classes
Flush and close this stream. This method has no effect if the file is
already closed. Once the file is closed, any operation on the file
- (e.g. reading or writing) will raise an :exc:`IOError`. The internal
- file descriptor isn't closed if *closefd* was False.
+ (e.g. reading or writing) will raise an :exc:`ValueError`.
+
+ As a convenience, it is allowed to call this method more than once;
+ only the first call, however, will have an effect.
.. attribute:: closed