Python education survey

Chris Angelico rosuav at gmail.com
Tue Dec 20 21:44:27 EST 2011


On Wed, Dec 21, 2011 at 1:34 PM, Roy Smith <roy at panix.com> wrote:
> As for line numbers, for working alone, I don't see much point.  But for
> any kind of interaction with other people, it's essential.  It's just SO
> much easier to say, "line 417" as opposed to "OK, scroll up a couple
> more lines, no, no, not that far, go down a little.  There!  See that
> print statement, now go down three lines below that, ..."  By the time
> the two of you are on the same page about which line of code you're
> talking about, you will have forgotten what you wanted to say.

Ctrl-G in many editors will let you GOTO (sorry, I'll try to keep this
PG-13) a specific line by number. Extremely handy, especially when
you're debugging across computers - the error message comes up on your
test computer and cites the line number, and you jump to it on your
dev easily.

ChrisA



More information about the Python-list mailing list