Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-145591: Move slicing note to subscription methods section#145606

Open
Towaiji wants to merge 1 commit intopython:mainfrom
Towaiji:gh-145591-slicing-note-move
Open

gh-145591: Move slicing note to subscription methods section#145606
Towaiji wants to merge 1 commit intopython:mainfrom
Towaiji:gh-145591-slicing-note-move

Conversation

@Towaiji
Copy link

@TowaijiTowaiji commentedMar 6, 2026
edited by github-actionsbot
Loading

This PR moves the slicing note out of theobject.__length_hint__ section and places it with the subscription protocol underobject.__getitem__.

That keeps the slicing translation example (a[1:2] = b ->a[slice(1, 2, None)] = b) next to the relevant special methods (__getitem__,__setitem__,__delitem__).

Issue:#145591


📚 Documentation preview 📚:https://cpython-previews--145606.org.readthedocs.build/

@python-cla-bot
Copy link

python-cla-botbot commentedMar 6, 2026
edited
Loading

All commit authors signed the Contributor License Agreement.

CLA signed

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

Reviewers

@willingcwillingcAwaiting requested review from willingcwillingc is a code owner

@AA-TurnerAA-TurnerAwaiting requested review from AA-TurnerAA-Turner is a code owner

Assignees

No one assigned

Labels

awaiting reviewdocsDocumentation in the Doc dirskip news

Projects

Status: Todo

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@Towaiji

[8]ページ先頭

©2009-2026 Movatter.jp