Why this throws an UnboundLocalError ?

Chris Angelico rosuav at gmail.com
Fri Jan 31 08:36:42 EST 2014


On Fri, Jan 31, 2014 at 10:05 PM, Marc Aymerich <glicerinu at 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



More information about the Python-list mailing list