Giampaolo Rodola' <g.rod...@gmail.com> added the comment: 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. ---------- Added file: http://bugs.python.org/file19542/tempfile.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10354> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com