document IOBase.__del__'s behavior (closes #21764)

Patch from Nikolaus Rath.
This commit is contained in:
Benjamin Peterson 2014-06-14 18:51:34 -07:00
parent a8c75fe31a
commit ef8abfc082
1 changed files with 6 additions and 0 deletions

View File

@ -353,6 +353,12 @@ I/O Base Classes
is usual for each of the lines provided to have a line separator at the is usual for each of the lines provided to have a line separator at the
end. end.
.. method:: __del__()
Prepare for object destruction. :class:`IOBase` provides a default
implementation of this method that calls the instance's
:meth:`~IOBase.close` method.
.. class:: RawIOBase .. class:: RawIOBase