We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1118f6f commit 9c4d800Copy full SHA for 9c4d800
1 file changed
Lib/profiling/sampling/sample.py
@@ -41,7 +41,7 @@ def _pause_threads(unwinder, blocking):
41
except ImportError:
42
LiveStatsCollector = None
43
44
-_FREE_THREADED_BUILD = bool(sysconfig.get_config_var("Py_GIL_DISABLED"))
+_FREE_THREADED_BUILD = sysconfig.get_config_var("Py_GIL_DISABLED") is not None
45
# Minimum number of samples required before showing the TUI
46
# If fewer samples are collected, we skip the TUI and just print a message
47
MIN_SAMPLES_FOR_TUI = 200
0 commit comments