[Patches] [ python-Patches-424554 ] pythonrun.c: bag the _Py_AskYesNo call

noreply@sourceforge.net noreply@sourceforge.net
Tue, 03 Jul 2001 22:33:20 -0700


Patches item #424554, was opened at 2001-05-16 08:12
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=424554&group_id=5470

Category: core (C code)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Skip Montanaro (montanaro)
>Assigned to: Guido van Rossum (gvanrossum)
Summary: pythonrun.c: bag the  _Py_AskYesNo call

Initial Comment:
Currently, on Unix-like systems if Py_TRACE_REFS is
defined,
the Python interpreter asks at the end of the run if
remaining
references should be dumped.  If you are trying to
debug
Python or its interaction with other packages that use
it this
can cause problems.  Case in point, the configure
script for the
PyGtk2 package runs the python interpreter to check
that its
version number is >= 2.0.  If you need Py_DEBUG enabled
to
build a version of PyGtk2 with that stuff turned on,
you need
it to not ask about printing references.  I think the
better
solution is just to have the reference dumping
dependent on
the presence of the PYTHONDUMPREFS environment
variable,
which is currently only used under Windows.  A patch to
fix
this problem is attached.



----------------------------------------------------------------------

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-07-03 22:33

Message:
Logged In: YES 
user_id=3066

Another approach would be to use command line parameters. 
I'm not sure that either approach is necessarily better than
the other.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=424554&group_id=5470