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

[3.13] gh-120642: Move private PyCode APIs to the internal C API (#120643) #121043

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jun 26, 2024

  • Move _Py_CODEUNIT and related functions to pycore_code.h.
  • Move _Py_BackoffCounter to pycore_backoff.h.
  • Move Include/cpython/optimizer.h content to pycore_optimizer.h.
  • Remove Include/cpython/optimizer.h.
  • Remove PyUnstable_Replace_Executor().

Rename functions:

  • PyUnstable_GetExecutor() => _Py_GetExecutor()
  • PyUnstable_GetOptimizer() => _Py_GetOptimizer()
  • PyUnstable_SetOptimizer() => _Py_SetTier2Optimizer()
  • PyUnstable_Optimizer_NewCounter() => _PyOptimizer_NewCounter()
  • PyUnstable_Optimizer_NewUOpOptimizer() => _PyOptimizer_NewUOpOptimizer()

(cherry picked from commit 9e4a81f)

…on#120643)

* Move _Py_CODEUNIT and related functions to pycore_code.h.
* Move _Py_BackoffCounter to pycore_backoff.h.
* Move Include/cpython/optimizer.h content to pycore_optimizer.h.
* Remove Include/cpython/optimizer.h.
* Remove PyUnstable_Replace_Executor().

Rename functions:

* PyUnstable_GetExecutor() => _Py_GetExecutor()
* PyUnstable_GetOptimizer() => _Py_GetOptimizer()
* PyUnstable_SetOptimizer() => _Py_SetTier2Optimizer()
* PyUnstable_Optimizer_NewCounter() => _PyOptimizer_NewCounter()
* PyUnstable_Optimizer_NewUOpOptimizer() => _PyOptimizer_NewUOpOptimizer()

(cherry picked from commit 9e4a81f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant