Skip to content

gh-106320: Remove private _PyImport C API functions #106383

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jul 3, 2023

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jul 3, 2023

  • Remove private _PyImport C API functions: move them to the internal C API (pycore_import.h).
  • No longer export most of these private functions.
  • _testcapi avoids private _PyImport_GetModuleAttrString().

* Remove private _PyImport C API functions: move them to the internal
  C API (pycore_import.h).
* No longer export most of these private functions.
* _testcapi avoids private _PyImport_GetModuleAttrString().
@vstinner vstinner enabled auto-merge (squash) July 3, 2023 22:53
@vstinner vstinner merged commit 2e92edb into python:main Jul 3, 2023
@vstinner vstinner deleted the pycore_import branch July 3, 2023 23:02
carljm added a commit to carljm/cpython that referenced this pull request Jul 4, 2023
* main:
  pythongh-106368: Increase Argument Clinic test coverage (python#106389)
  pythongh-106320: Fix _PyImport_GetModuleAttr() declaration (python#106386)
  pythongh-106368: Harden Argument Clinic parser tests (python#106384)
  pythongh-106320: Remove private _PyImport C API functions (python#106383)
  pythongh-86085: Remove _PyCodec_Forget() declaration (python#106377)
  pythongh-106320: Remove more private _PyUnicode C API functions (python#106382)
  pythongh-104050: Annotate more Argument Clinic DSLParser state methods (python#106376)
  pythongh-106368: Clean up Argument Clinic tests (python#106373)
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants