Author georg.brandl
Recipients
Date 2006-08-17.18:54:16
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=849994

In not_so_simple(), you *reassign* global_var. That means
that it is bound to a different object afterwards.

The name "global_var" you imported into the test module,
however, is bound to the original global_var object, and
this binding will not change. If that's not what you want,
you'll have to do "import core" and refer to "core.global_var".

Additionally, let me point out that using "global" to
declare a name as global in a function that does not
reassign that name is unnecessary.

Closing as Invalid.
History
Date User Action Args
2007-08-23 14:42:05adminlinkissue1542166 messages
2007-08-23 14:42:05admincreate