This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Antony.Lee
Recipients Antony.Lee
Date 2014-09-11.08:15:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1410423345.31.0.535332998594.issue22387@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2014-09-11 08:15:45Antony.Leesetrecipients: + Antony.Lee
2014-09-11 08:15:45Antony.Leesetmessageid: <1410423345.31.0.535332998594.issue22387@psf.upfronthosting.co.za>
2014-09-11 08:15:45Antony.Leelinkissue22387 messages
2014-09-11 08:15:44Antony.Leecreate