Commit 5e88eea9 authored by Georg Brandl's avatar Georg Brandl

part of #4144: fix exception message in console session.

parent a4f90184
......@@ -285,11 +285,11 @@ position in the string results in an error::
>>> word[0] = 'x'
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: object doesn't support item assignment
TypeError: object does not support item assignment
>>> word[:1] = 'Splat'
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: object doesn't support slice assignment
TypeError: object does not support slice assignment
However, creating a new string with the combined content is easy and efficient::
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment