mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
part of #4144: fix exception message in console session.
This commit is contained in:
parent
a4f90184dc
commit
5e88eea994
1 changed files with 2 additions and 2 deletions
|
|
@ -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::
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue