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:
    2,216
    Smokey Grindel
    Dec 2, 2006
  2. Marc Aymerich

    Why this throws an UnboundLocalError ?

    Marc Aymerich, Jan 30, 2014, in forum: Python
    Replies:
    0
    Views:
    67
    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:
    74
    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:
    79
    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:
    84
    Ned Batchelder
    Jan 30, 2014
Loading...

Share This Page