This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: StringIO and cStringIO don't provide 'name' attribute
Type: Stage:
Components: None Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: jvr, logistix, mwh
Priority: normal Keywords:

Created on 2005-04-03 20:20 by logistix, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
string_io_name.diff logistix, 2005-04-03 20:20 Patch to implement name attribute in StringIO
Messages (3)
msg24875 - (view) Author: Grant Olson (logistix) Date: 2005-04-03 20:20
Documentation explicitly states that file-like objects 
should return a repr-style psuedoname.  Patch is 
attached.
msg24876 - (view) Author: Just van Rossum (jvr) * (Python triager) Date: 2005-04-07 08:54
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.
msg24877 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2005-04-19 14:37
Logged In: YES 
user_id=6656

Agree with Just here.
History
Date User Action Args
2022-04-11 14:56:10adminsetgithub: 41799
2005-04-03 20:20:56logistixcreate