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 giampaolo.rodola
Recipients eric.smith, giampaolo.rodola
Date 2010-11-08.12:04:56
SpamBayes Score 4.4411256e-05
Marked as misclassified No
Message-id <1289217899.27.0.314434224421.issue10354@psf.upfronthosting.co.za>
In-reply-to
Content
Patch including tests is in attachment.
I think I've just found two further bugs though:


>>> tempfile.TemporaryFile().name
'<fdopen>'
>>> tempfile.TemporaryFile(prefix='xxx').name
'<fdopen>'
>>> tempfile.SpooledTemporaryFile().name
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/giampaolo/svn/python-2.7/Lib/tempfile.py", line 574, in name
    return self._file.name
AttributeError: 'cStringIO.StringO' object has no attribute 'name'

I'm going to open two separate tickets.
History
Date User Action Args
2010-11-08 12:04:59giampaolo.rodolasetrecipients: + giampaolo.rodola, eric.smith
2010-11-08 12:04:59giampaolo.rodolasetmessageid: <1289217899.27.0.314434224421.issue10354@psf.upfronthosting.co.za>
2010-11-08 12:04:57giampaolo.rodolalinkissue10354 messages
2010-11-08 12:04:57giampaolo.rodolacreate