From: Benjamin Peterson Date: Sun, 15 Jun 2014 01:51:34 +0000 (-0700) Subject: document IOBase.__del__'s behavior (closes #21764) X-Git-Tag: v2.7.8~37^2~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=efda558b60739bee311b53f521ac69f63b726de7;p=thirdparty%2FPython%2Fcpython.git document IOBase.__del__'s behavior (closes #21764) Patch from Nikolaus Rath. --- diff --git a/Doc/library/io.rst b/Doc/library/io.rst index be208847da5e..7b400858668f 100644 --- a/Doc/library/io.rst +++ b/Doc/library/io.rst @@ -346,6 +346,12 @@ I/O Base Classes is usual for each of the lines provided to have a line separator at the 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