Problem with global variables

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Mon Apr 2 10:29:35 EDT 2007


Laurent Pointal wrote:

> And so the solution to add "global foo" before using it.

Didn't you read his final question?

| All of a sudden, tiny() can see the global variable "foo".  Very
| confusing!  Why is it that tiny() sometimes can, and sometimes
| can't, see the global variable "foo"?

I have no explanation for this, but I'm interested in one, too.

Regards,


Björn

-- 
BOFH excuse #422:

Someone else stole your IP address, call the Internet detectives!




More information about the Python-list mailing list