@@ -486,7 +486,7 @@ Process-wide parameters
486486 (set by :c:func: `Py_SetProgramName ` above) and some environment variables.
487487 The returned string consists of a series of directory names separated by a
488488 platform dependent delimiter character. The delimiter character is ``':' ``
489- on Unix and Mac OS X , ``';' `` on Windows. The returned string points into
489+ on Unix and macOS , ``';' `` on Windows. The returned string points into
490490 static storage; the caller should not modify its value. The list
491491 :data: `sys.path ` is initialized with this value on interpreter startup; it
492492 can be (and usually is) modified later to change the search path for loading
@@ -518,7 +518,7 @@ Process-wide parameters
518518 default search path but uses the one provided instead. This is useful if
519519 Python is embedded by an application that has full knowledge of the location
520520 of all modules. The path components should be separated by the platform
521- dependent delimiter character, which is ``':'`` on Unix and Mac OS X , ``';' ``
521+ dependent delimiter character, which is ``':'`` on Unix and macOS , ``';' ``
522522 on Windows.
523523
524524 This also causes :data:`sys.executable` to be set to the program
@@ -561,7 +561,7 @@ Process-wide parameters
561561 Return the platform identifier for the current platform. On Unix, this is
562562 formed from the "official" name of the operating system, converted to lower
563563 case, followed by the major revision number; e.g., for Solaris 2.x, which is
564- also known as SunOS 5.x, the value is ``' sunos5' ``. On Mac OS X , it is
564+ also known as SunOS 5.x, the value is ``' sunos5' ``. On macOS , it is
565565 ``' darwin' ``. On Windows, it is ``' win' ``. The returned string points into
566566 static storage; the caller should not modify its value. The value is available
567567 to Python code as ``sys.platform``.
@@ -1173,6 +1173,26 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
11731173 .. versionadded :: 3.9
11741174
11751175
1176+ .. c :function :: void PyThreadState_EnterTracing (PyThreadState *tstate)
1177+
1178+ Suspend tracing and profiling in the Python thread state *tstate *.
1179+
1180+ Resume them using the :c:func: `PyThreadState_LeaveTracing ` function.
1181+
1182+ .. versionadded :: 3.11
1183+
1184+
1185+ .. c :function :: void PyThreadState_LeaveTracing (PyThreadState *tstate)
1186+
1187+ Resume tracing and profiling in the Python thread state *tstate * suspended
1188+ by the :c:func: `PyThreadState_EnterTracing ` function.
1189+
1190+ See also :c:func: `PyEval_SetTrace ` and :c:func: `PyEval_SetProfile `
1191+ functions.
1192+
1193+ .. versionadded :: 3.11
1194+
1195+
11761196.. c :function :: PyInterpreterState* PyInterpreterState_Get (void)
11771197
11781198 Get the current interpreter.
@@ -1623,6 +1643,8 @@ Python-level trace functions in previous versions.
16231643 profile function is called for all monitored events except :const: `PyTrace_LINE `
16241644 :const: `PyTrace_OPCODE ` and :const: `PyTrace_EXCEPTION `.
16251645
1646+ See also the :func: `sys.setprofile ` function.
1647+
16261648 The caller must hold the :term: `GIL `.
16271649
16281650
@@ -1635,6 +1657,8 @@ Python-level trace functions in previous versions.
16351657 will not receive :const: `PyTrace_C_CALL `, :const: `PyTrace_C_EXCEPTION ` or
16361658 :const: `PyTrace_C_RETURN ` as a value for the *what * parameter.
16371659
1660+ See also the :func: `sys.settrace ` function.
1661+
16381662 The caller must hold the :term: `GIL `.
16391663
16401664
0 commit comments