From 774d1c7e7757a7b9cc4ee0ad9a57db81dcbb8077 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 23 Sep 2021 11:01:57 +0200 Subject: [PATCH 1/2] bpo-43760: Document PyThreadState.use_tracing removal --- Doc/whatsnew/3.10.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index d1a1cb45dea1f7..b72c6d7b3583e5 100644 --- a/Doc/whatsnew/3.10.rst +++ b/Doc/whatsnew/3.10.rst @@ -2194,6 +2194,11 @@ Porting to Python 3.10 limited API. The function is mainly useful for custom builds of Python. (Contributed by Petr Viktorin in :issue:`26241`) +* The ``PyThreadState.use_tracing`` member has been removed to optimize Python: + ``tstate->use_tracing`` must be replaced with + ``tstate->cframe->use_tracing``. + (Contributed by Mark Shannon in :issue:`43760`.) + Deprecated ---------- From 9ef0fcce0045bbe7b2ed9d12cc55425f74e515c4 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 23 Sep 2021 12:34:22 +0200 Subject: [PATCH 2/2] only document the removal --- Doc/whatsnew/3.10.rst | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index b72c6d7b3583e5..4aa0cd410d5be1 100644 --- a/Doc/whatsnew/3.10.rst +++ b/Doc/whatsnew/3.10.rst @@ -2194,11 +2194,6 @@ Porting to Python 3.10 limited API. The function is mainly useful for custom builds of Python. (Contributed by Petr Viktorin in :issue:`26241`) -* The ``PyThreadState.use_tracing`` member has been removed to optimize Python: - ``tstate->use_tracing`` must be replaced with - ``tstate->cframe->use_tracing``. - (Contributed by Mark Shannon in :issue:`43760`.) - Deprecated ---------- @@ -2310,3 +2305,6 @@ Removed These functions were undocumented, excluded from the limited C API, and were only used internally by the compiler. (Contributed by Victor Stinner in :issue:`43244`.) + +* The ``PyThreadState.use_tracing`` member has been removed to optimize Python. + (Contributed by Mark Shannon in :issue:`43760`.)