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 Arfrever, Zdeněk.Pavlas, georg.brandl, jort.bloem, jstasiak, martin.panter, meador.inge, ncoghlan, r.david.murray, serhiy.storchaka, vstinner
Date 2013-12-15.20:58:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1387141117.21.0.232043612972.issue18879@psf.upfronthosting.co.za>
In-reply-to
Content
Jakub's patch has a bug:

>>> import tempfile
>>> f = tempfile.NamedTemporaryFile(dir=".",delete=False)
>>> write = f.write
>>> write
<function BufferedRandom.write at 0xb716b4f4>
>>> write2 = f.write
>>> write2
<built-in method write of _io.BufferedRandom object at 0xb721deac>
>>> del f
>>> write(b'foo')
3
>>> del write
>>> write2(b'bar')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: write to closed file
History
Date User Action Args
2013-12-15 20:58:37serhiy.storchakasetrecipients: + serhiy.storchaka, georg.brandl, ncoghlan, vstinner, Arfrever, r.david.murray, meador.inge, martin.panter, jort.bloem, Zdeněk.Pavlas, jstasiak
2013-12-15 20:58:37serhiy.storchakasetmessageid: <1387141117.21.0.232043612972.issue18879@psf.upfronthosting.co.za>
2013-12-15 20:58:37serhiy.storchakalinkissue18879 messages
2013-12-15 20:58:37serhiy.storchakacreate