Skip to content
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

C API: Remove private C API functions (move them to the internal C API) #106320

Open
vstinner opened this issue Jul 1, 2023 · 3 comments
Open

Comments

@vstinner
Copy link
Member

vstinner commented Jul 1, 2023

vstinner added a commit to vstinner/cpython that referenced this issue Jul 1, 2023
Replace calls to the (removed) slow _PyInterpreterState_Get() with
fast inlined _PyInterpreterState_GET() function.
vstinner added a commit to vstinner/cpython that referenced this issue Jul 1, 2023
Replace calls to the (removed) slow _PyInterpreterState_Get() with
fast inlined _PyInterpreterState_GET() function.
vstinner added a commit to vstinner/cpython that referenced this issue Jul 1, 2023
Replace calls to the (removed) slow _PyInterpreterState_Get() with
fast inlined _PyInterpreterState_GET() function.
@vstinner
Copy link
Member Author

vstinner commented Jul 1, 2023

See also issue #106316: remove pytime.h header file (_PyTime functions).

@vstinner
Copy link
Member Author

vstinner commented Jul 1, 2023

See also issue #106084: C API: Remove private functions from abstract.h.

@vstinner
Copy link
Member Author

vstinner commented Jul 1, 2023

See also commit 0b51463:

Remove the following private functions of the C API:

* _PyCodecInfo_GetIncrementalDecoder()
* _PyCodecInfo_GetIncrementalEncoder()
* _PyCodec_DecodeText()
* _PyCodec_EncodeText()
* _PyCodec_Forget()
* _PyCodec_Lookup()
* _PyCodec_LookupTextEncoding()

vstinner added a commit to vstinner/cpython that referenced this issue Jul 1, 2023
Replace calls to the (removed) slow _PyInterpreterState_Get() with
fast inlined _PyInterpreterState_GET() function.
vstinner added a commit that referenced this issue Jul 1, 2023
Replace calls to the (removed) slow _PyInterpreterState_Get() with
fast inlined _PyInterpreterState_GET() function.
vstinner added a commit to vstinner/cpython that referenced this issue Jul 2, 2023
* Remove private _PyTracemalloc C API functions: move them to the
  internal C API.
* Rename Include/tracemalloc.h to Include/cpython/tracemalloc.h
vstinner added a commit to vstinner/cpython that referenced this issue Jul 2, 2023
* Remove private _PyTracemalloc C API functions: move them to the
  internal C API.
* Don't export private _PyTracemalloc functions anymore.
* Rename Include/tracemalloc.h to Include/cpython/tracemalloc.h
vstinner added a commit to vstinner/cpython that referenced this issue Jul 2, 2023
* Remove private _PyTraceMalloc C API functions: move them to the
  internal C API.
* Don't export most of these functions anymore, but still export
  _PyTraceMalloc_GetTraceback() used by tests.
* Rename Include/tracemalloc.h to Include/cpython/tracemalloc.h
vstinner added a commit to vstinner/cpython that referenced this issue Jul 2, 2023
Remove private _PyThreadState and _PyInterpreterState C API
functions: move them to the internal C API (pycore_pystate.h and
pycore_interp.h). Don't export most of these functions anymore, but
still export functions used by tests.

Remove _PyThreadState_Prealloc() and _PyThreadState_Init() from the C
API, but keep it in the stable API.
vstinner added a commit that referenced this issue Jul 2, 2023
* Remove private _PyTraceMalloc C API functions: move them to the
  internal C API.
* Don't export most of these functions anymore, but still export
  _PyTraceMalloc_GetTraceback() used by tests.
* Rename Include/tracemalloc.h to Include/cpython/tracemalloc.h
vstinner added a commit to vstinner/cpython that referenced this issue Jul 2, 2023
Remove private _PyThreadState and _PyInterpreterState C API
functions: move them to the internal C API (pycore_pystate.h and
pycore_interp.h). Don't export most of these functions anymore, but
still export functions used by tests.

Remove _PyThreadState_Prealloc() and _PyThreadState_Init() from the C
API, but keep it in the stable API.
vstinner added a commit that referenced this issue Jul 2, 2023
Remove private _PyThreadState and _PyInterpreterState C API
functions: move them to the internal C API (pycore_pystate.h and
pycore_interp.h). Don't export most of these functions anymore, but
still export functions used by tests.

Remove _PyThreadState_Prealloc() and _PyThreadState_Init() from the C
API, but keep it in the stable API.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant