-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Remove Py_TPFLAGS_HAVE_FINALIZE
macro
#125447
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
Comments
cc @vstinner here as well (we could however remove the usage in the project itself and its only non-test usage is in posixmodule.c, but we should not remove it from the headers) Related: #86913 (comment)
|
I agree with keeping it in the header file. But I think it is necessary to remove its use in the code base. |
If you want to remove such constant, you should start by deprecating, and help projects to stop using it. A code search in PyPI top 7,500 projects found that 6 projects are using it:
Check how these projects use the constant. |
It seems that the projects used for use are limited. I'll go to the classifier of these projects to solve these problems. |
Why is there any kind of urgency with this? Why not follow the normal process and announce an actual version well in advance and then wait until then? Ultimately this is just an extra unused numeric constant that's hanging around so isn't doing any immediate harm. Cython still supports Python 3.7 for the moment so does use the constant for that version. I'm sure we could work around the removal. But I'm not sure it's the best use of our time to have to respond to a sudden, unannounced and unnecessary removal. |
There is no urgency. I suggest to close this issue. |
Feature or enhancement
Proposal:
In https://github.com/python/cpython/blob/main/Doc/deprecations/c-api-pending-removal-in-future.rst, Many of these goals have been achieved, and this one doesn't seem to have been removed.
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
Py_TPFLAGS_HAVE_FINALIZE
macro #125448The text was updated successfully, but these errors were encountered: