[Python-checkins] r80592 - python/trunk/Doc/library/io.rst
antoine.pitrou
python-checkins at python.org
Wed Apr 28 21:57:33 CEST 2010
Author: antoine.pitrou
Date: Wed Apr 28 21:57:33 2010
New Revision: 80592
Log:
Clarify and fix the documentation for IOBase.close()
Modified:
python/trunk/Doc/library/io.rst
Modified: python/trunk/Doc/library/io.rst
==============================================================================
--- python/trunk/Doc/library/io.rst (original)
+++ python/trunk/Doc/library/io.rst Wed Apr 28 21:57:33 2010
@@ -246,8 +246,10 @@
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
More information about the Python-checkins
mailing list