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 terry.reedy
Recipients Dutcho, asvetlov, martin.panter, sergiitk, serhiy.storchaka, terry.reedy, wumpus
Date 2019-12-11.20:46:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1576097177.5.0.74961546911.issue33762@roundup.psfhosted.org>
In-reply-to
Content
Looking at the tempfile code more, I agree with Serhiy that changing it should be rejected.  Python is a duck-typed language (essentially what Martin said). People should not be over-zealous in using instance checks.
 
The doc specifically says that TemporaryFile returns a *file-like object*
https://docs.python.org/3/glossary.html#term-file-like-object
which only require implementing the interface.
History
Date User Action Args
2019-12-11 20:46:17terry.reedysetrecipients: + terry.reedy, asvetlov, martin.panter, serhiy.storchaka, wumpus, Dutcho, sergiitk
2019-12-11 20:46:17terry.reedysetmessageid: <1576097177.5.0.74961546911.issue33762@roundup.psfhosted.org>
2019-12-11 20:46:17terry.reedylinkissue33762 messages
2019-12-11 20:46:16terry.reedycreate