[docs] [issue21764] Document that IOBase.__del__ calls self.close

Nikolaus Rath report at bugs.python.org
Sun Jun 15 00:47:56 CEST 2014

New submission from Nikolaus Rath:

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.

assignee: docs at python
components: Documentation
files: iobase2.diff
keywords: patch
messages: 220591
nosy: benjamin.peterson, docs at python, eric.araujo, ezio.melotti, georg.brandl, hynek, nikratio, pitrou, stutzbach
priority: normal
severity: normal
status: open
title: Document that IOBase.__del__ calls self.close
type: enhancement
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file35637/iobase2.diff

Python tracker <report at bugs.python.org>

More information about the docs mailing list