Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
_PyImport_FindExtensionObject is a private API. It was added in 3.3 because import.c and importdl.c needed to share code. Since 3.5 it was only used in import.c, so there is no longer need to expose it. It was removed in 3.10 because there was an issue with this API: it returned a borroved reference which could be invalid at the time of returning. I can restore and fix _PyImport_FindExtensionObject in 3.10, but is not it too later to do after 3.10.0rc2? If it is essential to you, propose to add a new public API (perhaps better designed). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41994> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com