Re: Why this throws an UnboundLocalError ?

Discussion in 'Python' started by Chris Angelico, Jan 31, 2014.

  1. On Fri, Jan 31, 2014 at 10:05 PM, Marc Aymerich <> 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
    Chris Angelico, Jan 31, 2014
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mr. SweatyFinger
    Replies:
    2
    Views:
    1,762
    Smokey Grindel
    Dec 2, 2006
  2. Marc Aymerich

    Why this throws an UnboundLocalError ?

    Marc Aymerich, Jan 30, 2014, in forum: Python
    Replies:
    0
    Views:
    53
    Marc Aymerich
    Jan 30, 2014
  3. Chris Angelico

    Re: Why this throws an UnboundLocalError ?

    Chris Angelico, Jan 30, 2014, in forum: Python
    Replies:
    0
    Views:
    57
    Chris Angelico
    Jan 30, 2014
  4. Mark Lawrence

    Re: Why this throws an UnboundLocalError ?

    Mark Lawrence, Jan 30, 2014, in forum: Python
    Replies:
    0
    Views:
    61
    Mark Lawrence
    Jan 30, 2014
  5. Ned Batchelder

    Re: Why this throws an UnboundLocalError ?

    Ned Batchelder, Jan 30, 2014, in forum: Python
    Replies:
    0
    Views:
    63
    Ned Batchelder
    Jan 30, 2014
Loading...

Share This Page