Interpreter hangs after calling my extension

Ben Hutchings ben.hutchings at roundpoint.com
Wed Jul 4 07:38:24 EDT 2001


Martin von Loewis <loewis at informatik.hu-berlin.de> writes:

> Ben Hutchings <ben.hutchings at roundpoint.com> writes:
> 
> > When I enter 'cvsdll.main([])' at the Python console, my extension
> > function is called; it runs and returns as expected (checked in the
> > VC++ debugger), but the Python interpreter never prints a new prompt
> > or reacts to input.  Further, if I set cvsdll.stderr = sys.stderr
> > first, the error message that is successfully written to sys.stderr
> > (checked in the VC++ debugger) never appears in the console.
> 
> Your code looks fine to me. Are you running it from IDLE or PythonWin?
> If so, don't be surprised that nothing is displayed immediately; you
> may need to trigger a repaint. So I recommend to run it in the console
> version first.

I was running it in the console.

In PythonWin these problems don't occur.  So perhaps the CVS DLL
does something strange to the console.  In any case, I think that's
where I should be looking now.  Thanks for looking over my code.

> Next, you probably have to start debugging through the Python code, as
> well. You'll need the debug version of Python for that so VC++ can
> locate the source code properly.

Right.



More information about the Python-list mailing list