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


Groups > comp.lang.python > #65117

Re: Why this throws an UnboundLocalError ?

References <CA+DCN_tQsZDckkueO7FiVYKihy2b9=SdeALJ4RwrQN_uk0dDLQ@mail.gmail.com> <CAPTjJmrVNgbwLMZ9yiv1qzVgexU5amMrNf3LM+NVAy_-qr5qQQ@mail.gmail.com> <CA+DCN_usPwPpNDwRuDgrWz22KQSGZ7=f1dP18CSSYW31FJkpNg@mail.gmail.com>
Date 2014-02-01 00:36 +1100
Subject Re: Why this throws an UnboundLocalError ?
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.6205.1391175410.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Fri, Jan 31, 2014 at 10:05 PM, Marc Aymerich <glicerinu@gmail.com> wrote:
> I can't believe, all these years using Python and never encountered a
> situation where I needed to use global !

That might be an indication of good code design :)

ChrisA

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


Thread

Re: Why this throws an UnboundLocalError ? Chris Angelico <rosuav@gmail.com> - 2014-02-01 00:36 +1100

csiph-web