Skip to content

gh-152030: Clarify sequence.index() signature#152092

Open
subscapularis wants to merge 4 commits into
python:mainfrom
subscapularis:patch-1
Open

gh-152030: Clarify sequence.index() signature#152092
subscapularis wants to merge 4 commits into
python:mainfrom
subscapularis:patch-1

Conversation

@subscapularis

@subscapularis subscapularis commented Jun 24, 2026

Copy link
Copy Markdown

Updated the method signature for sequence.index to use the positional-only marker (/), replacing the old bracket syntax.

Updated the method signature for sequence.index to use the positional-only marker (/), replacing the old bracket syntax. Fixes python#152030
@bedevere-app bedevere-app Bot added docs Documentation in the Doc dir skip news labels Jun 24, 2026
@python-cla-bot

python-cla-bot Bot commented Jun 24, 2026

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@read-the-docs-community

read-the-docs-community Bot commented Jun 24, 2026

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33296572 | 📁 Comparing 3dbeecc against main (ff781d5)

  🔍 Preview build  

6 files changed · ± 6 modified

± Modified

@skirpichev skirpichev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, as a fix for sphinx docs.

This will not fix the issue, however. Method signatures should be fixed too (at least for str/bytes.index(), maybe more).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants