[ python-Bugs-1175967 ] StringIO and cStringIO don't provide 'name' attribute

SourceForge.net noreply at sourceforge.net
Thu Apr 7 10:54:03 CEST 2005


Bugs item #1175967, was opened at 2005-04-03 22:20
Message generated for change (Comment added) made by jvr
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1175967&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: logistix (logistix)
Assigned to: Nobody/Anonymous (nobody)
Summary: StringIO and cStringIO don't provide 'name' attribute

Initial Comment:
Documentation explicitly states that file-like objects 
should return a repr-style psuedoname.  Patch is 
attached.


----------------------------------------------------------------------

>Comment By: Just van Rossum (jvr)
Date: 2005-04-07 10:54

Message:
Logged In: YES 
user_id=92689

The documentation also says "This is a read-only attribute and
may not be present on all file-like objects.", so I'm inclined to close
as "won't fix". I'm sure many in-the-wild file-like objects don't support
it, either, so depending on its existence is bad style at best.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1175967&group_id=5470


More information about the Python-bugs-list mailing list