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


Groups > comp.lang.python > #51939

Re: stupid simple scope issue

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.076
X-Spam-Evidence '*H*': 0.87; '*S*': 0.02; 'odd': 0.07; 'python': 0.11; 'posted': 0.15; 'bindings,': 0.16; 'block.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'languages)': 0.16; 'subject:issue': 0.16; 'subject:simple': 0.16; 'wrote:': 0.18; 'slightly': 0.19; 'aug': 0.22; 'header:In-Reply- To:1': 0.27; 'tried': 0.27; 'chris': 0.29; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; 'class': 0.32; 'but': 0.35; 'received:google.com': 0.35; 'much.': 0.36; 'starting': 0.37; 'thank': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'slowly': 0.60; 'real': 0.63; 'dust': 0.84; 'move.': 0.84; 'reply!': 0.84; 'capture': 0.91; 'thing,': 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=6DJdqArSXPRzKwj3DBzHElvduwCwduwak3poQTWmjaM=; b=n5b+hJSCgTc0udzevB18zJdjMnK5Lw/a4KqFJ/Q/zbFDSlMiUcaRrT8a8h8eQAoaqE J20J7L/jIETd3+w1HDisUyytUJMfIBeKyaCb55vJbf9m6+KDkLbBzjVq1hHzx33OhTx+ enV/ZvO8rQValr30ofwLJmR9kQxXUPlUO1X4cr+BmQ9VnCPoMvmxfOm4Pg53ztdE4smG WIO7JesEj7QyOsDsa9g/u4ObPWkPzqMHAsbDxOYe7/RBSYKDX53FfolPoM4Ev1bTMgQK v9tpRJ6wNC7/4O96Hy3XBbBQDYQXjFw6UzHXHZAoqLQha43U2pX7J6HCejiu3ub+hZ/U +Iqg==
MIME-Version 1.0
X-Received by 10.220.182.193 with SMTP id cd1mr4928255vcb.32.1375646602734; Sun, 04 Aug 2013 13:03:22 -0700 (PDT)
In-Reply-To <51fea9bb$0$1677$e4fe514c@dreader35.news.xs4all.nl>
References <51fe9b6b$0$1689$e4fe514c@dreader35.news.xs4all.nl> <mailman.190.1375641581.1251.python-list@python.org> <51fea9bb$0$1677$e4fe514c@dreader35.news.xs4all.nl>
Date Sun, 4 Aug 2013 21:03:22 +0100
Subject Re: stupid simple scope issue
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.191.1375646610.1251.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1375646610 news.xs4all.nl 15903 [2001:888:2000:d::a6]:34722
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:51939

Show key headers only | View raw


On Sun, Aug 4, 2013 at 8:21 PM, JohnD <john@nowhere.com> wrote:
> On 2013-08-04, Chris Angelico <rosuav@gmail.com> wrote:
> [...]
> Thank you very much. The dust is slowly starting to move.
> The code posted is nothing like the real thing, but I tried
> to capture the essence.
>
> From your commants I think I see my mistake.
>
> Thank you very much for your reply!

No probs!

Python does have a slightly odd (compared to other languages)
interpretation of "variable assignments" (name bindings, really)
inside a class block. Trips up a lot of people.

ChrisA

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


Thread

stupid simple scope issue JohnD <john@nowhere.com> - 2013-08-04 18:20 +0000
  Re: stupid simple scope issue Chris Angelico <rosuav@gmail.com> - 2013-08-04 19:39 +0100
    Re: stupid simple scope issue JohnD <john@nowhere.com> - 2013-08-04 19:21 +0000
      Re: stupid simple scope issue Chris Angelico <rosuav@gmail.com> - 2013-08-04 21:03 +0100
        Re: stupid simple scope issue JohnD <john@nowhere.com> - 2013-08-05 07:21 +0000

csiph-web