It's a bug!....but is it me or the script? (Global var assign)

JCM joshway_without_spam at myway.com
Wed Nov 19 11:22:07 EST 2003


You must declare a module-level variable global in a function if you
wish to assign to it:

  x = 0

  def f():
     global x
     x = 1




More information about the Python-list mailing list