-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-117431: Adapt bytes and bytearray .find() and friends to Argument Clinic #117502
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-117431: Adapt bytes and bytearray .find() and friends to Argument Clinic #117502
Conversation
…section will fill in the needed info
…'the bytes' and 'the bytearray' in docstring
Note that the diff is not as frightening as GitHub wants it; subtract the generated files, and the diff is within ~200 lines of code, most of it being clinic input blocks.
|
@methane, I intend to merge this in time for the beta in May. Aiming to land it next week. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although old docstring used [start,end], I want to fix them to [start:end].
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Thanks for the review, Inada-san! |
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
…ument Clinic (python#117502) This change gives a significant speedup, as the METH_FASTCALL calling convention is now used. The following bytes and bytearray methods are adapted: - count() - find() - index() - rfind() - rindex() Co-authored-by: Inada Naoki <songofacandy@gmail.com>
This change gives a significant speedup, as the METH_FASTCALL calling convention is used.