gh-143420: Clarify sequence behavior for slice indexes by skirpichev · Pull Request #143422 · python/cpython · GitHub
Skip to content

gh-143420: Clarify sequence behavior for slice indexes#143422

Merged
hugovk merged 5 commits into
python:mainfrom
skirpichev:improve-slice-notes/143420
Jan 11, 2026
Merged

gh-143420: Clarify sequence behavior for slice indexes#143422
hugovk merged 5 commits into
python:mainfrom
skirpichev:improve-slice-notes/143420

Conversation

@skirpichev

@skirpichev skirpichev commented Jan 5, 2026

Copy link
Copy Markdown
Member

This explain what happens when for negative start or stop arguments of big magnitude.

Also reference sequence term in the :mod:array docs.


📚 Documentation preview 📚: https://cpython-previews--143422.org.readthedocs.build/en/143422/library/stdtypes.html

https://cpython-previews--143422.org.readthedocs.build/en/143422/library/stdtypes.html#common-sequence-operations

This explain what happens when for negative start or stop
arguments of big magnitude.

Also reference sequence term in the :mod:`array` docs.
@skirpichev skirpichev added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Jan 5, 2026
@bedevere-app bedevere-app Bot added docs Documentation in the Doc dir skip news labels Jan 5, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Jan 5, 2026
@skirpichev skirpichev requested a review from hugovk January 9, 2026 22:54
@skirpichev

Copy link
Copy Markdown
Member Author

Comment thread Doc/library/array.rst Outdated
Comment thread Doc/library/stdtypes.rst Outdated
@skirpichev skirpichev requested a review from picnixz January 10, 2026 23:22
@skirpichev

Copy link
Copy Markdown
Member Author

What we should do with common array methods? I think removal (like for other sequence types, e.g. bytearray) is a good idea. But broken links is a problem.

@hugovk hugovk merged commit 23b9377 into python:main Jan 11, 2026
32 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @skirpichev for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Jan 11, 2026
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 11, 2026
…H-143422)

(cherry picked from commit 23b9377)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 11, 2026
…H-143422)

(cherry picked from commit 23b9377)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
@bedevere-app

bedevere-app Bot commented Jan 11, 2026

Copy link
Copy Markdown

GH-143701 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Jan 11, 2026
@bedevere-app

bedevere-app Bot commented Jan 11, 2026

Copy link
Copy Markdown

GH-143703 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Jan 11, 2026
hugovk pushed a commit that referenced this pull request Jan 11, 2026
) (#143701)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
hugovk pushed a commit that referenced this pull request Jan 11, 2026
) (#143703)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
@skirpichev skirpichev deleted the improve-slice-notes/143420 branch January 11, 2026 18:03
@bedevere-bot

Copy link
Copy Markdown

reidenong pushed a commit to reidenong/cpython that referenced this pull request Jan 12, 2026
thunder-coding pushed a commit to thunder-coding/cpython that referenced this pull request Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants