GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-119132: Log sys._is_gil_enabled() in test.pythoninfo (#119140) · python/cpython@74072a3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Lib/test
    • pythoninfo.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Lib/test/pythoninfo.py‎

Copy file name to clipboardExpand all lines: Lib/test/pythoninfo.py
+7-3Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,13 @@ def collect_sys(info_add):
105105
)
106106
copy_attributes(info_add, sys, 'sys.%s', attributes)
107107

108-
call_func(info_add, 'sys.androidapilevel', sys, 'getandroidapilevel')
109-
call_func(info_add, 'sys.windowsversion', sys, 'getwindowsversion')
110-
call_func(info_add, 'sys.getrecursionlimit', sys, 'getrecursionlimit')
108+
for func in (
109+
'_is_gil_enabled',
110+
'getandroidapilevel',
111+
'getrecursionlimit',
112+
'getwindowsversion',
113+
):
114+
call_func(info_add, f'sys.{func}', sys, func)
111115

112116
encoding = sys.getfilesystemencoding()
113117
if hasattr(sys, 'getfilesystemencodeerrors'):

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.