Invalid syntax

Roy Smith roy at
Thu Nov 8 00:31:10 CET 2012

In article <mailman.3404.1352330555.27098.python-list at>,
 Demian Brecht <demianbrecht at> wrote:

> On 2012-11-07, at 3:17 PM, Smaran Harihar <smaran.harihar at> wrote:
> > Any idea where am I going wrong?
> Looks like you're missing a closing parenthesis:

What I find is useful in situations like this is to just let emacs 
auto-indent the code.  When it starts indenting (or coloring) 
differently than I would have expected, that's a clue that I've messed 
up some punctuation somewhere.

This doesn't only work in emacs.  Vim, eclipse, etc, all have similar 
syntax-coloring and auto-indenting features.  The same idea works with 
any of them.

More information about the Python-list mailing list