Implementation of the global statement

Greg Ewing see_reply_address at something.invalid
Wed Nov 27 23:36:26 EST 2002


Martin v. Löwis wrote:

> Of course, you can't tell afterwards if a global name was considered
> global because there was no assignment to it, or whether there was a
> global declaration.


You could pick apart the bytecode and find out
which globals are assigned to. But you'd have
to want to know *really* badly before doing
that.

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg




More information about the Python-list mailing list