classification
Title: Document that IOBase.__del__ calls self.close
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.4, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: benjamin.peterson, docs@python, eric.araujo, ezio.melotti, georg.brandl, hynek, nikratio, pitrou, python-dev, stutzbach
Priority: normal Keywords: patch

Created on 2014-06-14 22:47 by nikratio, last changed 2014-06-15 01:52 by python-dev. This issue is now closed.

Files
File name Uploaded Description Edit
iobase2.diff nikratio, 2014-06-14 22:48 review
Messages (2)
msg220591 - (view) Author: Nikolaus Rath (nikratio) * Date: 2014-06-14 22:47
CPython's io.IOBase.__del__ calls self.close(), but this isn't documented anywhere (and may be surprised for derived classes).

The attached patch extends the documentation.
msg220605 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-06-15 01:52
New changeset 601a08fcb507 by Benjamin Peterson in branch '3.4':
document IOBase.__del__'s behavior (closes #21764)
http://hg.python.org/cpython/rev/601a08fcb507

New changeset 4dca82f8d91d by Benjamin Peterson in branch '2.7':
document IOBase.__del__'s behavior (closes #21764)
http://hg.python.org/cpython/rev/4dca82f8d91d

New changeset 787cd41d0404 by Benjamin Peterson in branch 'default':
merge 3.4 (#21764)
http://hg.python.org/cpython/rev/787cd41d0404
History
Date User Action Args
2014-06-15 01:52:21python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg220605

resolution: fixed
stage: resolved
2014-06-14 22:48:32nikratiosetfiles: - iobase2.diff
2014-06-14 22:48:24nikratiosetfiles: + iobase2.diff
2014-06-14 22:47:56nikratiocreate