Re: [Python-Dev] Negative indices in UserString.MutableString

2005-02-17 Thread Aahz
On Thu, Feb 17, 2005, Walter D?rwald wrote: > > Currently UserString.MutableString does not support negative indices: > > >>> import UserString > >>> UserString.MutableString("foo")[-1] = "bar" > Traceback (most recent call last): > File "", line 1, in ? > File "/home/Python-test/dist/src/Lib/

[Python-Dev] Negative indices in UserString.MutableString

2005-02-17 Thread Walter Dörwald
Currently UserString.MutableString does not support negative indices: >>> import UserString >>> UserString.MutableString("foo")[-1] = "bar" Traceback (most recent call last): File "", line 1, in ? File "/home/Python-test/dist/src/Lib/UserString.py", line 149, in __setitem__ if index < 0 or