New submission from Chester <[EMAIL PROTECTED]>: The 'global' statement is used to mark a variable as global. It is used in functions to allow statements in the function body to rebind global variables. Using the 'global' statement is generally considered poor style and should be avoided whenever possible. Example:
count = 1 def inc(): global count count = count + 1 Since the use of the 'global' statement is frowned upon, it should be removed from Python 3.0. ---------- components: Interpreter Core messages: 67322 nosy: chester severity: normal status: open title: Goodbye, 'global' statement! type: feature request versions: Python 3.0 __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2962> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com