From 4b922145643fb41513bcb8704a04a981bacd3e53 Mon Sep 17 00:00:00 2001 From: Matthias Schoettle Date: Thu, 16 Oct 2025 13:21:50 -0400 Subject: [PATCH 1/3] docs: clarify trace function implementation used by default depending on the Python version --- doc/config.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/config.rst b/doc/config.rst index 21ea6729c..154666d20 100644 --- a/doc/config.rst +++ b/doc/config.rst @@ -335,8 +335,9 @@ Before version 4.2, this option only accepted a single string. (string) Specify which trace function implementation to use. Valid values are: "pytrace" for the pure Python implementation, "ctrace" for the C implementation -(default), or "sysmon" for the :mod:`sys.monitoring ` -implementation (Python 3.12+ only). +(default until Python 3.13), +or "sysmon" for the :mod:`sys.monitoring ` +implementation (default with Python 3.14+). This was previously only available as the COVERAGE_CORE environment variable. Note that the "sysmon" core does not yet support plugins or dynamic contexts. From 8693953777a82d46e3282310d720451900687b79 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 6 Nov 2025 06:22:56 -0500 Subject: [PATCH 2/3] Apply suggestions from code review Co-authored-by: devdanzin <74280297+devdanzin@users.noreply.github.com> --- doc/config.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/config.rst b/doc/config.rst index 154666d20..5549b3ff8 100644 --- a/doc/config.rst +++ b/doc/config.rst @@ -336,7 +336,7 @@ Before version 4.2, this option only accepted a single string. (string) Specify which trace function implementation to use. Valid values are: "pytrace" for the pure Python implementation, "ctrace" for the C implementation (default until Python 3.13), -or "sysmon" for the :mod:`sys.monitoring ` +or "sysmon" (Python 3.12+ only) for the :mod:`sys.monitoring ` implementation (default with Python 3.14+). This was previously only available as the COVERAGE_CORE environment variable. From a091bea0e45a0e9110453131a2e9ff2eae2678ca Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 6 Nov 2025 06:26:40 -0500 Subject: [PATCH 3/3] Apply suggestions from code review --- doc/config.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/config.rst b/doc/config.rst index 5549b3ff8..e105a6412 100644 --- a/doc/config.rst +++ b/doc/config.rst @@ -336,7 +336,8 @@ Before version 4.2, this option only accepted a single string. (string) Specify which trace function implementation to use. Valid values are: "pytrace" for the pure Python implementation, "ctrace" for the C implementation (default until Python 3.13), -or "sysmon" (Python 3.12+ only) for the :mod:`sys.monitoring ` +or "sysmon" (Python 3.12+ only) for the +:mod:`sys.monitoring ` implementation (default with Python 3.14+). This was previously only available as the COVERAGE_CORE environment variable.