KEMBAR78
[3.13] gh-120642: Move private PyCode APIs to the internal C API (#120643) by vstinner · Pull Request #121043 · python/cpython · GitHub
Skip to content

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