-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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-101903: use _Py_EnterRecursiveCall internal API in _bisectmodule.c #101931
Conversation
gdementen
commented
Feb 15, 2023
•
edited
Loading
edited
- Issue: Use _Py_EnterRecursiveCall private API in _bisectmodule.c #101903
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
@gdementen Thanks for the PR. I've left some comments below but I think maybe we should wait and see how @rhettinger feels about using the internal static inline versions before moving forward? First, in order to land this (although not a guarantee), you'll need to sign the contributor license agreement above :). The changes you submitted look good to me. However, to address the build errors, it looks like modules tend to use this at the very top of their file (e.g. #ifndef Py_BUILD_CORE_BUILTIN
# define Py_BUILD_CORE_MODULE 1
#endif This should eliminate the build errors (at least it does for me). |
@OTheDev Thanks for the kind answer and pointer on how to solve the build issue. I'll continue on this probably one of the evenings of next week. I don't understand what "rhettinger removed their request for review 9 hours ago" means. Does it mean it has no chance of being reviewed/accepted? |
@gdementen Thanks for the reply! I'm just as confused as you are ;) I think it is safe to assume that Raymond is very busy and needs to prioritize. Regarding your chances of being accepted, I unfortunately cannot comment on that as I am not a core developer and I do not want to give any false hope. However, I do think that if you think the change is meaningful, the best way to maximize your chances is to demonstrate a proof-of-concept that passes all CI tests so that it is easier to review for core developers. If a few weeks goes by and no one has commented on it, I would ping a core developer to ask if they would be willing to review the change. Then, the change may be rejected or accepted (with possible revisions requested). BTW, I apologize if my comment in the issue gave any false hope. I hadn't realized that the macros I suggested (or similar) in my previous comment were not already present, which makes the overall task a little more challenging. I don't think this change will lead to a significant performance improvement but I do like consistency - the only place where the public versions are invoked in the codebase are in the bisectmodule. I've seen PRs be accepted for consistency reasons, so there's precedent, but still no guarantees. Whether I recommend you continue with the PR or close it as not planned, I'm sorry that I cannot say :/ |