-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
Remove _PySys_GetObjectId / _PySys_GetObjectId #91143
Comments
There is no usage of _PySys_GetObjectId / _PySys_GetObjectId private APIs in CPython project. |
./top_5000/datatable-1.0.0.tar.gz: datatable-1.0.0/src/core/python/obj.cc: _PySys_GetObjectId(&PyId_stdin) // borrowed ref |
Do you have a plan to use PySys_GetObject("modules") instead of _PySys_GetObjectId(&PyId_modules)? |
@vstinner |
https://pypi.org/project/pickle5/ should not be used on Python 3.8 and newer: it's a backport for Python 3.7 and older. |
_PySys_GetObjectId() and _PySys_GetObjectId() are private API and can be removed anytime. We don't provide any backward compatibility warranty on the private API: "Names prefixed by an underscore, such as _Py_InternalState, are private API that can change without notice even in patch releases." |
It would be nice to notify datatable, or even propose a PR, if the _PySys_GetObjectId() is removed in Python 3.11. |
All three occurences look like this 1 for two years (see git blame): #ifndef Py_LIMITED_API
_PySys_GetObjectId(&PyId_stdin) // borrowed ref
#else
PySys_GetObject("stdin") // borrowed ref
#endif So everything is fixed already. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: