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


Groups > comp.lang.python > #50695

Is this a bug?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <tdhfwh@nottheoilrig.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.055
X-Spam-Evidence '*H*': 0.90; '*S*': 0.01; 'attribute': 0.07; 'subject:bug': 0.07; 'assigns': 0.16; 'received:192.168.0.11': 0.16; 'header:User-Agent:1': 0.23; 'code': 0.31; 'class': 0.32; 'supposed': 0.32; 'subject:?': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'skip:u 10': 0.60; 'subject:this': 0.83
DKIM-Signature v=1; a=rsa-sha256; c=simple/simple; d=nottheoilrig.com; s=mail; t=1373903451; bh=WtUD4ge8G70l8WCVKSSeM+T7rVrRNKJ5shBOeIwuxiU=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=U1AvYiK6QosE4x0I1xnK97RW4y/eiwtUxVA19T6omVRTW5uuvMMniI7V36fxi/liC NI/H9FTQnd/Pgeuy0SgAhv9ONXHvXV68reqYc7EThtsEnGssiV1olsKcCeSb07+LEN cTWCJoBCu53SrVUAiC0yI0iTKZd8PoHbalH14gdM=
Date Mon, 15 Jul 2013 08:50:52 -0700
From Jack Bates <tdhfwh@nottheoilrig.com>
User-Agent Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130509 Thunderbird/17.0.6
MIME-Version 1.0
To python-list@python.org
Subject Is this a bug?
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
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.4735.1373903859.3114.python-list@python.org> (permalink)
Lines 8
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1373903859 news.xs4all.nl 15994 [2001:888:2000:d::a6]:32874
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:50695

Show key headers only | View raw


Hello,

Is the following code supposed to be an UnboundLocalError?
Currently it assigns the value 'bar' to the attribute baz.foo

    foo = 'bar'
    class baz:
       foo = foo

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


Thread

Is this a bug? Jack Bates <tdhfwh@nottheoilrig.com> - 2013-07-15 08:50 -0700

csiph-web