comparison Python/pythonrun.c @ 12518:9e53a7112395 legacy-trunk

Mark Hammond: For Windows debug builds, we now only offer to dump remaining object references if the environment variable PYTHONDUMPREFS exists. The default behaviour caused problems for background or otherwise invisible processes that use the debug build of Python.
author Guido van Rossum <guido@python.org>
date Thu, 27 Apr 2000 23:44:15 +0000
parents ec6b6ca5d111
children d7484a743354
comparison
equal deleted inserted replaced
12517:6ebe0acb7776 12518:9e53a7112395
240 #ifdef Py_REF_DEBUG 240 #ifdef Py_REF_DEBUG
241 fprintf(stderr, "[%ld refs]\n", _Py_RefTotal); 241 fprintf(stderr, "[%ld refs]\n", _Py_RefTotal);
242 #endif 242 #endif
243 243
244 #ifdef Py_TRACE_REFS 244 #ifdef Py_TRACE_REFS
245 if (_Py_AskYesNo("Print left references?")) { 245 if (
246 #ifdef MS_WINDOWS /* Only ask on Windows if env var set */
247 getenv("PYTHONDUMPREFS") &&
248 #endif /* MS_WINDOWS */
249 _Py_AskYesNo("Print left references?")) {
246 _Py_PrintReferences(stderr); 250 _Py_PrintReferences(stderr);
247 } 251 }
248 #endif /* Py_TRACE_REFS */ 252 #endif /* Py_TRACE_REFS */
249 253
250 /* Delete current thread */ 254 /* Delete current thread */