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 serhiy.storchaka
Recipients Dutcho, asvetlov, martin.panter, sergiitk, serhiy.storchaka, terry.reedy, wumpus
Date 2019-12-11.07:03:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1576047781.95.0.675069806104.issue33762@roundup.psfhosted.org>
In-reply-to
Content
I have doubts that making _TemporaryFileWrapper a subclass of IOBase can make it simpler. It can make it more complex. _TemporaryFileWrapper is a proxy class with the __getattr__ method which not just return attributes of the underlying file, but wraps methods so they have references to the _TemporaryFileWrapper instance. If subclass IOBase you will need to write implementations of all methods of IOBase and its subclasses. You could also to reproduce the hierarhy of io classes to support binary and text, buffered and unbuffered files.

IDLE's pseudofiles are simpler because they represent only text files.
History
Date User Action Args
2019-12-11 07:03:02serhiy.storchakasetrecipients: + serhiy.storchaka, terry.reedy, asvetlov, martin.panter, wumpus, Dutcho, sergiitk
2019-12-11 07:03:01serhiy.storchakasetmessageid: <1576047781.95.0.675069806104.issue33762@roundup.psfhosted.org>
2019-12-11 07:03:01serhiy.storchakalinkissue33762 messages
2019-12-11 07:03:01serhiy.storchakacreate