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


Groups > comp.lang.python > #50697 > unrolled thread

Re: Is this a bug?

Started byZachary Ware <zachary.ware+pylist@gmail.com>
First post2013-07-15 11:06 -0500
Last post2013-07-15 11:06 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Is this a bug? Zachary Ware <zachary.ware+pylist@gmail.com> - 2013-07-15 11:06 -0500

#50697 — Re: Is this a bug?

FromZachary Ware <zachary.ware+pylist@gmail.com>
Date2013-07-15 11:06 -0500
SubjectRe: Is this a bug?
Message-ID<mailman.4737.1373904396.3114.python-list@python.org>
On Mon, Jul 15, 2013 at 10:50 AM, Jack Bates <tdhfwh@nottheoilrig.com> wrote:
> 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

No bug.  It's not an error because of differences in the way classes
and functions compile.

--
Zach

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web