We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1a470b commit afd055aCopy full SHA for afd055a
Lib/test/pythoninfo.py
@@ -115,6 +115,14 @@ def collect_sys(info_add):
115
encoding = '%s/%s' % (encoding, errors)
116
info_add('sys.%s.encoding' % name, encoding)
117
118
+ # Were we compiled --with-pydebug or with #define Py_DEBUG?
119
+ Py_DEBUG = hasattr(sys, 'gettotalrefcount')
120
+ if Py_DEBUG:
121
+ text = 'Yes (sys.gettotalrefcount() present)'
122
+ else:
123
+ text = 'No (sys.gettotalrefcount() missing)'
124
+ info_add('Py_DEBUG', text)
125
+
126
127
def collect_platform(info_add):
128
import platform
0 commit comments