-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
gh-91102: Use Argument Clinic for str_iterator #92524
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
Conversation
-0 I don't see how this makes us better-off. We typically use argument clinic on user facing APIs that need a signature object or that have some sort of efficiency gain. For iterator objects, there is almost no payoff. |
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.
I support these changes. Using Argument Clinic makes the C code more consistent and readable and allows performance and introspection improvements.
@JelleZijlstra IMO, it makes tends to make the C code less readable (with the AC codes, having run a tool on every edit, breaking up the natural flow of the C code, and making it more difficult to see where the costs are because the input processing is in a separate file). Putting all C code into the ArgumentClinic was never a goal. That seems to be have been a new, contagious, and made up meme. Significant AC work was done in the first few years. Almost everything that wasn't done was omitted on purpose because there was no payoff. |
@rhettinger I agree that carpet conversion of That's why I limit scope of changes to a very few small class declarations with unusual naming (here |
Thanks for clarification. Initially I've thought that such functions were just missed because of a low priority or would use then-nonexistent AC features. In this case this PR is the last one in the series (changed |
Thanks for explaining your thoughts. FWIW, there is no value in converting the it to self in the internal code and it is a step backwards from the norms (like we use so for setobject instances rather than self). Also, I believe it was decided (and don't remember when or why) to not sweep through and convert all the object structs to the I'm going to mark this one as closed. Thanks for the PR but I think we're better off without it. No user is going to benefit from this PR, it would just churn code that has been stable for a good while. Please do keep contributing. Perhaps aims you time and skills at some of the 5,000 open issues where we know something needs to be fixed :-) |
Closes #91102, a followup of #31725.