New submission from Stephen J. Turnbull:

In section 4.6.3. "Mutable Sequence Types" of current documentation, Note 1 to 
the table says "[iterable] t must have the same length as the slice it is 
replacing." This is incorrect in the case of extension: s[len(s):] = t 
according to the rest of the documentation, as well as experiment.

----------
assignee: docs@python
components: Documentation
keywords: easy
messages: 292127
nosy: docs@python, sjt
priority: normal
severity: normal
status: open
title: Incorrect documentation of replacement of slice of length 0
type: behavior
versions: Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30138>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to