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 jort.bloem
Recipients georg.brandl, jort.bloem, meador.inge, ncoghlan, r.david.murray, serhiy.storchaka, vstinner
Date 2013-09-04.20:46:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1378327584.89.0.274856143475.issue18879@psf.upfronthosting.co.za>
In-reply-to
Content
I am only new to Python, but...

Having looked at the code, I am surprised that the _TemporaryFileWrapper is not a subclass of "file". Surely that would be the "python" way, and would solve this problem, too? __getattr__ would no longer be needed. The opening of the file is within the library, so _os.open() could be replaced with file()... It would require rewriting/reorganising chunks of this code...
History
Date User Action Args
2013-09-04 20:46:24jort.bloemsetrecipients: + jort.bloem, georg.brandl, ncoghlan, vstinner, r.david.murray, meador.inge, serhiy.storchaka
2013-09-04 20:46:24jort.bloemsetmessageid: <1378327584.89.0.274856143475.issue18879@psf.upfronthosting.co.za>
2013-09-04 20:46:24jort.bloemlinkissue18879 messages
2013-09-04 20:46:24jort.bloemcreate