does lack of type declarations make Python unsafe?

Thomas Heller theller at python.net
Fri Jun 20 17:02:16 CEST 2003


David Abrahams <dave at boost-consulting.com> writes:

> Has someone really straightened out the situation with Python
> debuggers?  Last time I looked there was no JIT debugging,
You can install an except hook which throws you into a debugger when
an uncatched exception is raised, see
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65287

>  and no way
> to set a conditional breakpoint in a long-running test without waiting
> forever as Python calls the debugger hook on every instruction (or
> statement, I forget).

Hm, you can simply insert 'import pdb; pdb.set_trace()' into the code.
No overhead.

Thomas




More information about the Python-list mailing list