mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
document IOBase.__del__'s behavior (closes #21764)
Patch from Nikolaus Rath.
This commit is contained in:
@@ -353,6 +353,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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user