Skip to content

Commit

Permalink
Updated print_debug_info to output the status of the GIL
Browse files Browse the repository at this point in the history
  • Loading branch information
oddbookworm committed Feb 28, 2025
1 parent 5846dcb commit 5bfba1d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src_py/_debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ def _get_platform_info():
)

ret += f"Python:\t\t\t{platform.python_implementation()} {sys.version}\n"
ret += (
f"GIL Enabled:\t\t{sys._is_gil_enabled()}\n"
if hasattr(sys, "_is_gil_enabled")
else "GIL Enabled:\t\tTrue\n"
)
ret += f"pygame version:\t\t{ver}\n"
return ret

Expand Down

0 comments on commit 5bfba1d

Please sign in to comment.