Problem with the "for" loop syntax

Joshua Landau joshua.landau.ws at gmail.com
Thu Jun 20 09:39:11 EDT 2013


On 20 June 2013 04:11, Cameron Simpson <cs at zip.com.au> wrote:
> Also, opening-and-not-closing a set of brackets is almost the only
> way in Python to make this kind of error (syntax at one line, actual
> mistake far before).
>
> See if your editor has a show-the-matching-bracket mode.
<snip>
> If you suspect you failed to close a bracket, one approach is to
> go _below_ the syntax error (or right on it) and type a closing
> bracket. Then see where the editor thinks the opening one is.

Thanks for that, that's quite an ingenious technique.



More information about the Python-list mailing list