variable scope
Cris A. Fugate
fugate at lucent.com
Mon Jul 31 09:35:30 EDT 2000
Hi, Im new to Python and I have a question about variable scope.
It seems that any variable declared in a function is local.
Is there any way to define a global variable within a function?
For example, Tcl can use eval and uplevel to evaluate code
on any scope level. In Scheme a local variable uses let,
otherwise it is global.
--
**********************************************************************
Cris A. Fugate Lucent Technologies, Robust Process Automation
fugate at lucent.com http://ihgpweb.ih.lucent.com/~fugate
630 713-8255 Creator of framesets, a frames implementation
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20000731/a809d0be/attachment.html>
More information about the Python-list
mailing list