Message358278
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. |
|
Date |
User |
Action |
Args |
2019-12-11 20:46:17 | terry.reedy | set | recipients:
+ terry.reedy, asvetlov, martin.panter, serhiy.storchaka, wumpus, Dutcho, sergiitk |
2019-12-11 20:46:17 | terry.reedy | set | messageid: <1576097177.5.0.74961546911.issue33762@roundup.psfhosted.org> |
2019-12-11 20:46:17 | terry.reedy | link | issue33762 messages |
2019-12-11 20:46:16 | terry.reedy | create | |
|