if self.quitting: raise BdbQuit

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

if self.quitting: raise BdbQuit

Bob Gailer
While debugging I get:

[Dbg]>>> Traceback (most recent call last):
   File "N:\pipelines\parsers.py", line 111, in __init__
     self.parserSequence.results = self.results
   File "N:\pipelines\parsers.py", line 111, in __init__
     self.parserSequence.results = self.results
   File "D:\Python27\lib\bdb.py", line 48, in trace_dispatch
     return self.dispatch_line(frame)
   File "D:\Python27\lib\bdb.py", line 67, in dispatch_line
     if self.quitting: raise BdbQuit
BdbQuit

Why? What does this mean?

--
Bob Gailer
919-636-4239
Chapel Hill NC

_______________________________________________
python-win32 mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/python-win32
Reply | Threaded
Open this post in threaded view
|

Re: if self.quitting: raise BdbQuit

Tim Roberts
bob gailer wrote:

> While debugging I get:
>
> [Dbg]>>> Traceback (most recent call last):
>    File "N:\pipelines\parsers.py", line 111, in __init__
>      self.parserSequence.results = self.results
>    File "N:\pipelines\parsers.py", line 111, in __init__
>      self.parserSequence.results = self.results
>    File "D:\Python27\lib\bdb.py", line 48, in trace_dispatch
>      return self.dispatch_line(frame)
>    File "D:\Python27\lib\bdb.py", line 67, in dispatch_line
>      if self.quitting: raise BdbQuit
> BdbQuit
>
> Why? What does this mean?

What had you typed?  When the debugger encounters an unexpected error,
it sets that quitting flag.  Later, in several places, if that flag is
set, it raises the BdbQuit exception to cause everything to exit.

--
Tim Roberts, [hidden email]
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/python-win32