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


Groups > comp.lang.python > #48766

Re: Problem with the "for" loop syntax

Path csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.037
X-Spam-Evidence '*H*': 0.93; '*S*': 0.00; 'syntax': 0.04; 'debugging': 0.07; 'fixed,': 0.09; 'will,': 0.09; 'brackets.': 0.16; 'cause.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:Problem': 0.16; '(you': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'guys': 0.24; 'helpful': 0.24; 'header:In- Reply-To:1': 0.27; 'am,': 0.29; 'errors': 0.30; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; 'posting': 0.31; 'figure': 0.32; 'quite': 0.32; 'open': 0.33; 'actual': 0.34; 'subject:the': 0.34; 'problem': 0.35; 'subject:with': 0.35; "can't": 0.35; 'received:google.com': 0.35; "didn't": 0.36; 'method': 0.36; 'error.': 0.37; 'list': 0.37; 'sometimes': 0.38; 'thank': 0.38; 'easiest': 0.38; 'to:addr:python-list': 0.38; 'subject:" ': 0.39; 'to:addr:python.org': 0.39; 'even': 0.60; 'real': 0.63; 'worth': 0.66; '20,': 0.68; 'yourself': 0.78; 'discovered': 0.83; 'cutting': 0.91; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ic9pobEg8McrpB9ovRU5Yh+PyJPsCAMiD4smJOz7iUE=; b=iVSjofmeLs7LONtyban4olFqClbVW6CxwCgUiWX4sjkrGtAb0qkjHCiP2UYGf2znnB gpmqR0BvymXtZQtvg0bDPqLjYikx9hcHIREoYeHfQ6mnBxQgCrBNc+E9Wo3ymtPNw+MF KPfmq06lN85SQ6cEfajFAwnN+rGMclUOTKos9adRKKL9QVdnXrghsVVSuklIE4ggAZsO L6T1Bj7AYOdU1pNI+J0p6VKP8s9LuWtqot/MOAF5PEHoi5fbuxOGCfEP6X/6tdzFk43I GRRkSrECu7Ip2m2tEYU4YSV4Z2If3lfqIJGB4D2xdJJ2t8qJDvDsBQAROPznteD62q8P pXiQ==
MIME-Version 1.0
X-Received by 10.221.4.4 with SMTP id oa4mr1543923vcb.70.1371690563368; Wed, 19 Jun 2013 18:09:23 -0700 (PDT)
In-Reply-To <a0ad440c-ab09-4dfd-be18-1abc6ceaa189@googlegroups.com>
References <18f427ef-7a9a-413d-a824-65c9df430db3@googlegroups.com> <a0ad440c-ab09-4dfd-be18-1abc6ceaa189@googlegroups.com>
Date Thu, 20 Jun 2013 11:09:23 +1000
Subject Re: Problem with the "for" loop syntax
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3604.1371690571.3114.python-list@python.org> (permalink)
Lines 17
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1371690571 news.xs4all.nl 15902 [2001:888:2000:d::a6]:44200
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:48766

Show key headers only | View raw


On Thu, Jun 20, 2013 at 11:02 AM, Arturo B <a7xrturodev@gmail.com> wrote:
> Fixed, the problem was in
> HANGMANPICS
>
> I didn't open the brackets.
>
> Thank you guys :)

General debugging tip: Syntax errors are sometimes discovered quite
some way below the actual cause. The easiest way to figure out what's
the real cause is to start cutting away unnecessary code until all
that's left is the tiniest part that still has the error. This is also
very helpful as a prerequisite to posting on a list like this, so even
if you can't find the problem yourself by this method (you often will,
though), it's well worth doing.

ChrisA

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


Thread

Problem with the "for" loop syntax arturo balbuena <a7xrturodev@gmail.com> - 2013-06-19 14:14 -0700
  Re: Problem with the "for" loop syntax John Gordon <gordon@panix.com> - 2013-06-19 21:30 +0000
  Re: Problem with the "for" loop syntax Dave Angel <davea@davea.name> - 2013-06-19 17:32 -0400
  Re: Problem with the "for" loop syntax Ian Kelly <ian.g.kelly@gmail.com> - 2013-06-19 16:35 -0600
  Re: Problem with the "for" loop syntax Arturo B <a7xrturodev@gmail.com> - 2013-06-19 15:53 -0700
    Re: Problem with the "for" loop syntax Joshua Landau <joshua.landau.ws@gmail.com> - 2013-06-20 00:15 +0100
  Re: Problem with the "for" loop syntax Arturo B <a7xrturodev@gmail.com> - 2013-06-19 17:32 -0700
  Re: Problem with the "for" loop syntax Arturo B <a7xrturodev@gmail.com> - 2013-06-19 18:02 -0700
    Re: Problem with the "for" loop syntax Chris Angelico <rosuav@gmail.com> - 2013-06-20 11:09 +1000

csiph-web