Kaydet (Commit) 689405ee authored tarafından Antoine Pitrou's avatar Antoine Pitrou

Clarify and fix the documentation for IOBase.close()

üst ece349e5
...@@ -246,8 +246,10 @@ I/O Base Classes ...@@ -246,8 +246,10 @@ I/O Base Classes
Flush and close this stream. This method has no effect if the file is 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 already closed. Once the file is closed, any operation on the file
(e.g. reading or writing) will raise an :exc:`IOError`. The internal (e.g. reading or writing) will raise an :exc:`ValueError`.
file descriptor isn't closed if *closefd* was False.
As a convenience, it is allowed to call this method more than once;
only the first call, however, will have an effect.
.. attribute:: closed .. attribute:: closed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment