[3.10] bpo-45307: Restore private C API function _PyImport_FindExtensionObject()#28594
Conversation
…ionObject py2exe and PyOxidizer rely on this API. It will be removed in Python 3.11.
pablogsal
left a comment
There was a problem hiding this comment.
LGTM but would it be possible to add a deprecation warning at compile time or runtime ?
|
Good point, thank you @pablogsal! I was going to add deprecation, but forgot. |
vstinner
left a comment
There was a problem hiding this comment.
If the plan is to keep the function removed in 3.11, I don't see the value of this change. It just gives more time to projects using this private function to find another solution. But I don't see any concrete solution being discussed.
We don't provide backward compatibility warranties in private functions.
Yeah, this was a special request by PyOxidicer, check the bpo issue |
…ionObject() (GH-28594) py2exe and PyOxidizer rely on this API. It will be removed in Python 3.11. Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
py2exe and PyOxidizer rely on this API.
It will be removed in Python 3.11.
https://bugs.python.org/issue45307