[New-bugs-announce] [issue31942] Document that support of start and stop parameters in the Sequence's index() is optional

Serhiy Storchaka report at bugs.python.org
Sat Nov 4 05:10:01 EDT 2017


New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:

Parameters start and stop were added to the Sequence.index() mixin method in 3.5 (see issue23086). But not all concrete implementations of the Sequence ABC support them (for example range.index() doesn't, see issue28197). This should be explicitly documented (including the docstring of Sequence.index).

----------
assignee: docs at python
components: Documentation
keywords: easy
messages: 305547
nosy: docs at python, rhettinger, serhiy.storchaka
priority: normal
severity: normal
stage: needs patch
status: open
title: Document that support of start and stop parameters in the Sequence's index() is optional
type: behavior
versions: Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31942>
_______________________________________


More information about the New-bugs-announce mailing list