Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '(at': 0.04; 'mrab': 0.05; 'subject:Python': 0.06; 'cc:addr:python-list': 0.11; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; 'iterating': 0.16; 'least)': 0.16; 'threw': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'wed,': 0.18; 'unlike': 0.19; 'cc:addr:python.org': 0.22; 'skip': 0.24; 'cc:2**0': 0.24; 'header :In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'sep': 0.31; 'yields': 0.31; 'guess': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'list': 0.37; 'pm,': 0.38; 'sure': 0.39; 'first': 0.61; 'contents,': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=0wCK5gXnzjSV7BGLvWk1TCuQ+TazpHFErAhNmXIaweQ=; b=BnqXlEjImZEXSpSXXmJYffbWnxUjOy0GMTYnYdwbdiHQfmKQFmvo+MjXSndK1GrEav VZlqMgYz0LBH1kQ+Haqbar0G06r0JuRoKbf57gjXzGVm/5fT4CiiUD3GazrKxDmzRh8j 6Scbn6w714iaznYSfwDAmnbzgHZlIAFf4rcRJxJjToj5Tj8j8R6ZScuCf1sAHFZZXA8g OwY9wemB7TFDKCwOKLUoZyyujNL/bZJY+zIqbsko4c1fzBLsuAVUdGfQ66ljjcgvTwDr e0By/U2q6KEY4jMPMDOpMq/r4jJZGGlUHnk+V4KLTlpuefwcyTtRdWJlTo60nJe0yqwB ehAQ== MIME-Version: 1.0 X-Received: by 10.50.33.73 with SMTP id p9mr39361250igi.24.1409768919800; Wed, 03 Sep 2014 11:28:39 -0700 (PDT) Sender: skip.montanaro@gmail.com In-Reply-To: <54075CE6.20405@mrabarnett.plus.com> References: <54075CE6.20405@mrabarnett.plus.com> Date: Wed, 3 Sep 2014 13:28:39 -0500 X-Google-Sender-Auth: zO6xz4oAxGOCK-lW8ORUb_CYLlk Subject: Re: Python is going to be hard From: Skip Montanaro To: MRAB Content-Type: text/plain; charset=UTF-8 Cc: Python X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 8 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1409768928 news.xs4all.nl 2894 [2001:888:2000:d::a6]:39601 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:77490 On Wed, Sep 3, 2014 at 1:24 PM, MRAB wrote: > Iterating over a list yields its contents, not indexes. Unlike in JavaScript. Not sure where the OP is coming from, but that "feature" of JavaScript threw me when I first encountered it. My guess would be that his prior experience includes (at least) JS. Skip