[issue10355] SpooledTemporaryFile's name property is broken

2013-02-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6e9210a092cf by Serhiy Storchaka in branch '3.2': Fix a test for SpooledTemporaryFile (added in issue #10355). http://hg.python.org/cpython/rev/6e9210a092cf New changeset b5074ed74ec3 by Serhiy Storchaka in branch '3.3': Fix a test for SpooledTempor

[issue10355] SpooledTemporaryFile's name property is broken

2013-02-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue10355] SpooledTemporaryFile's name property is broken

2013-02-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5c2ff6e64c47 by Serhiy Storchaka in branch '2.7': Issue #10355: SpooledTemporaryFile properties and xreadline method now work for unrolled files. http://hg.python.org/cpython/rev/5c2ff6e64c47 New changeset dfc6902b63d7 by Serhiy Storchaka in branch

[issue10355] SpooledTemporaryFile's name property is broken

2013-02-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file28981/SpooledTemporaryFile_properties-2.7.patch ___ Python tracker ___ _

[issue10355] SpooledTemporaryFile's name property is broken

2013-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which implements properties for which it has a sense and remove if there is no sense. -- assignee: -> serhiy.storchaka components: +Library (Lib) keywords: +patch nosy: +ncoghlan, serhiy.storchaka stage: needs patch -> patch review ve

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Also "encoding" and "mode" properties fail in the same manner. -- ___ Python tracker ___ ___ Pyt

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: Wow, brain fail. What I actually wanted to say: SpooledTemporaryFile “operates exactly as TemporaryFile() does”, which is not guaranteed to have a name. The definition of file-like object (linked from tempfile docs) says nothing about a name either. Therefor

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread R. David Murray
R. David Murray added the comment: Éric: right, but we're talking about *Spooled*Temprorary file, which doesn't say anything about a name, and in fact says that the data is kept in memory (which implies it has no name). -- ___ Python tracker

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: >From the doc of tempfile.NamedTemporaryFile: “This function operates exactly >as TemporaryFile() does, except that the file is guaranteed to have a visible >name in the file system (on Unix, the directory entry is not unlinked). That >name can be retrieved from

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Yes, sorry, I should have been less concise. =) > Seriously, though, I presume this bug report is asking for either a > better error message or for .name to raise an attribute error on a > SpooledTemporaryFile? I'm not sure what's better. I must be honest

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread R. David Murray
R. David Murray added the comment: What makes you think SpooledTemporaryFile *has* a name attribute? :) Seriously, though, I presume this bug report is asking for either a better error message or for .name to raise an attribute error on a SpooledTemporaryFile? -- nosy: +r.david.murra

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : >>> import tempfile >>> tempfile.SpooledTemporaryFile().name Traceback (most recent call last): File "", line 1, in File "/home/giampaolo/svn/python-2.7/Lib/tempfile.py", line 574, in name return self._file.name AttributeError: 'cStringIO.StringO'