Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #32918

Re: Invalid syntax

From Roy Smith <roy@panix.com>
Newsgroups comp.lang.python
Subject Re: Invalid syntax
Date 2012-11-07 18:31 -0500
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <roy-8C90BA.18311007112012@news.panix.com> (permalink)
References <CAHRZm1tsR-Uu4-18EZ-kgsDY7FvxYyMB1aMk-=xTm_m4ikqEFQ@mail.gmail.com> <mailman.3404.1352330555.27098.python-list@python.org>

Show all headers | View raw


In article <mailman.3404.1352330555.27098.python-list@python.org>,
 Demian Brecht <demianbrecht@gmail.com> wrote:

> On 2012-11-07, at 3:17 PM, Smaran Harihar <smaran.harihar@gmail.com> 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.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: Invalid syntax Demian Brecht <demianbrecht@gmail.com> - 2012-11-07 15:22 -0800
  Re: Invalid syntax Roy Smith <roy@panix.com> - 2012-11-07 18:31 -0500

csiph-web