Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #50697 > unrolled thread
| Started by | Zachary Ware <zachary.ware+pylist@gmail.com> |
|---|---|
| First post | 2013-07-15 11:06 -0500 |
| Last post | 2013-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.
Re: Is this a bug? Zachary Ware <zachary.ware+pylist@gmail.com> - 2013-07-15 11:06 -0500
| From | Zachary Ware <zachary.ware+pylist@gmail.com> |
|---|---|
| Date | 2013-07-15 11:06 -0500 |
| Subject | Re: 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
Back to top | Article view | comp.lang.python
csiph-web