About reading Python code

Nir nir1408 at gmail.com
Mon Mar 17 05:54:59 EDT 2008


On Mar 17, 5:54 am, WaterWalk <toolmas... at 163.com> wrote:
> Hello. I wonder what's the effective way of figuring out how a piece
> ofpythoncode works. With C I often find it very useful to be able to
> run the code in step mode and set breakpoints in adebuggerso I can
> watch how the it executes, how the data change and how the code jumps
> from one function to another. But withPython, thedebuggeris a
> little primitive. The default IDLE doesn't even allow me to set a
> breakpoint. When the code is long, I am often lost in it.
>
> So I'm curious how to read code effectively. I agree thatpythoncode
> is clear, but when it becomes long, reading it can still be a hard
> work.

Try Winpdb - www.winpdb.org (works on Linux as well). Don't forget to
send feedback.




More information about the Python-list mailing list