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
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
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10355
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
Changes by Serhiy Storchaka storch...@gmail.com:
Added file:
http://bugs.python.org/file28981/SpooledTemporaryFile_properties-2.7.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10355
___
New submission from Giampaolo Rodola' g.rod...@gmail.com:
import tempfile
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:
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10355
___
___
Python-bugs-list
R. David Murray rdmur...@bitdance.com 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?
Giampaolo Rodola' g.rod...@gmail.com 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.
Éric Araujo mer...@netwok.org 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
R. David Murray rdmur...@bitdance.com 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).
--
___
Éric Araujo mer...@netwok.org 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
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Also encoding and mode properties fail in the same manner.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10355
___
13 matches
Mail list logo