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 jstasiak
Recipients georg.brandl, jort.bloem, jstasiak, meador.inge, ncoghlan, r.david.murray, serhiy.storchaka, vstinner
Date 2013-09-05.08:41:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1378370513.98.0.753126070354.issue18879@psf.upfronthosting.co.za>
In-reply-to
Content
I don't see an obvious way of solving that. One thing I could think of is creating a wrapper for file method being returned from __getattr__ that holds reference to _TemporaryFileWrapper instance until the method gets called, please find a patch attached.
History
Date User Action Args
2013-09-05 08:41:54jstasiaksetrecipients: + jstasiak, georg.brandl, ncoghlan, vstinner, r.david.murray, meador.inge, serhiy.storchaka, jort.bloem
2013-09-05 08:41:53jstasiaksetmessageid: <1378370513.98.0.753126070354.issue18879@psf.upfronthosting.co.za>
2013-09-05 08:41:53jstasiaklinkissue18879 messages
2013-09-05 08:41:53jstasiakcreate