[Python-bugs-list] [ python-Bugs-496240 ] __slots__ does not iterate over a string
noreply@sourceforge.net
noreply@sourceforge.net
Sat, 22 Dec 2001 23:06:19 -0800
Bugs item #496240, was opened at 2001-12-22 23:06
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=496240&group_id=5470
Category: Parser/Compiler
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Clarence Gardner (cgardner)
Assigned to: Nobody/Anonymous (nobody)
Summary: __slots__ does not iterate over a string
Initial Comment:
According to Guido's writeup, the value given to
__slots__
can be any iterable object. If you give it a string
value,
however, e.g. __slots__ = 'abc', instead of getting
three
valid attributes named 'a', 'b', and 'c', you get one
named 'abc'.
Priority: Low. No, even lower :)
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=496240&group_id=5470