> > This looks for or creates an nl in your module. 
> Beg to differ- global will not create it.
>
> def f():global a


> What it does is alert the compiler that assignment to the 
> variable will make it global.

Thats what I meant, that an assignment to a variable marked 
as global inside a function will create the variable in the 
global namespace rather than in the local one, if it does not 
already exist.

But I didn't explain it very well...

Alan G.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to