[New-bugs-announce] [issue22387] Making tempfile.NamedTemporaryFile a class
Antony Lee
report at bugs.python.org
Thu Sep 11 10:15:45 CEST 2014
New submission from Antony Lee:
Currently, tempfile.TemporaryFile and tempfile.NamedTemporaryFile are functions, not classes, despite what their names suggest, preventing subclassing. It would arguably be not so easy to make TemporaryFile a class, as its return value is whatever "_io.open" returns, which can be of various types, but NamedTemporaryFile can trivially converted into a class by reusing the body of _TemporaryFileWrapper (which is not used elsewhere).
----------
components: Library (Lib)
messages: 226752
nosy: Antony.Lee
priority: normal
severity: normal
status: open
title: Making tempfile.NamedTemporaryFile a class
versions: Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22387>
_______________________________________
More information about the New-bugs-announce
mailing list