[Python-bugs-list] [ python-Bugs-732057 ] stdout.softspace no longer writable
SourceForge.net
noreply@sourceforge.net
Sat, 03 May 2003 21:13:15 -0700
Bugs item #732057, was opened at 2003-05-04 00:12
Message generated for change (Comment added) made by tim_one
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=732057&group_id=5470
Category: Python Interpreter Core
Group: Python 2.3
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Tim Peters (tim_one)
Assigned to: Tim Peters (tim_one)
Summary: stdout.softspace no longer writable
Initial Comment:
>>> import sys
>>> sys.stdout.softspace = 0
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: 'file' object has only read-only attributes
(assign to .softspace)
>>>
Offhand this is a mystery. file_memberlist's entry for
softspace does not mark it readonly
----------------------------------------------------------------------
>Comment By: Tim Peters (tim_one)
Date: 2003-05-04 00:13
Message:
Logged In: YES
user_id=31435
The file object had a NULL tp_setattro slot. Repaired, and
added new tests to test_file.py.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=732057&group_id=5470