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

[mypyc] Optimize str.rsplit#18673

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
JukkaL merged 1 commit intopython:masterfromcdce8p:mypyc-str-rsplit
Feb 14, 2025
Merged

Conversation

@cdce8p
Copy link
Collaborator

UsePyUnicode_RSplit to optimizestr.rsplit calls. Although not present in the documentation, it's has actually part of the stable API since Python 3.2.

https://github.com/python/cpython/blob/v3.13.2/Doc/data/stable_abi.dat#L799
https://github.com/python/cpython/blob/main/Include/unicodeobject.h#L841-L858

@cdce8pcdce8p added the topic-mypycmypyc bugs labelFeb 13, 2025
@cdce8pcdce8pforce-pushed themypyc-str-rsplit branch 3 times, most recently fromfbb6c08 to6dad3a7CompareFebruary 14, 2025 09:40
Copy link
Collaborator

@JukkaLJukkaL left a comment

Choose a reason for hiding this comment

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

Nice to have symmetry betweensplit andrsplit!

@JukkaLJukkaL merged commit49c3fa4 intopython:masterFeb 14, 2025
12 of 13 checks passed
@cdce8pcdce8p deleted the mypyc-str-rsplit branchFebruary 14, 2025 10:20
x612skm pushed a commit to x612skm/mypy-dev that referenced this pull requestFeb 24, 2025
Use `PyUnicode_RSplit` to optimize `str.rsplit` calls. Although notpresent in the documentation, it's has actually part of the stable APIsince Python 3.2.https://github.com/python/cpython/blob/v3.13.2/Doc/data/stable_abi.dat#L799https://github.com/python/cpython/blob/main/Include/unicodeobject.h#L841-L858
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@JukkaLJukkaLJukkaL approved these changes

Assignees

No one assigned

Labels

topic-mypycmypyc bugs

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@cdce8p@JukkaL

[8]ページ先頭

©2009-2025 Movatter.jp