[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 SpooledTemporaryFile (added in issue #10355).
http://hg.python.org/cpython/rev/b5074ed74ec3

New changeset 029011429f80 by Serhiy Storchaka in branch 'default':
Fix a test for SpooledTemporaryFile (added in issue #10355).
http://hg.python.org/cpython/rev/029011429f80

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10355
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 '3.2':
Issue #10355: SpooledTemporaryFile properties now work for unrolled files.
http://hg.python.org/cpython/rev/dfc6902b63d7

New changeset f36d8ba4eeef by Serhiy Storchaka in branch '3.3':
Issue #10355: SpooledTemporaryFile properties now work for unrolled files.
http://hg.python.org/cpython/rev/f36d8ba4eeef

New changeset f1a13191f0c8 by Serhiy Storchaka in branch 'default':
Issue #10355: SpooledTemporaryFile properties now work for unrolled files.
http://hg.python.org/cpython/rev/f1a13191f0c8

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10355
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10355] SpooledTemporaryFile's name property is broken

2013-02-09 Thread Serhiy Storchaka

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
versions: +Python 3.3, Python 3.4 -Python 3.1
Added file: 
http://bugs.python.org/file28980/SpooledTemporaryFile_properties.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10355
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10355] SpooledTemporaryFile's name property is broken

2013-02-06 Thread Serhiy Storchaka

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread Giampaolo Rodola'

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: 'cStringIO.StringO' object has no attribute 'name'

--
messages: 120736
nosy: georg.brandl, giampaolo.rodola
priority: normal
severity: normal
status: open
title: SpooledTemporaryFile's name property is broken
versions: Python 2.7, Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10355
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.araujo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10355
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread R. David Murray

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?

--
nosy: +r.david.murray
stage:  - needs patch
type:  - behavior

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10355
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread Giampaolo Rodola'

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. I must be honest and say that I opened this report 
more to signal this behavior rather than provide a solution, though.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10355
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread Éric Araujo

É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 retrieved from the name member of the file object. Whether the 
name can be used to open the file a second time, while the named temporary 
file is still open, varies across platforms (it can be so used on Unix; it 
cannot on Windows NT or later).”

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10355
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread R. David Murray

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).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10355
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread Éric Araujo

É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 either.  Therefore, I think the presence of this attribute 
is a bug.

Adding Collin to nosy, as the committer of SpooledTemporaryFile.

--
nosy: +collinwinter

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10355
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread Giampaolo Rodola'

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com