Python syntax in Lisp and Scheme
David Eppstein
eppstein at ics.uci.edu
Wed Oct 15 14:11:41 EDT 2003
In article <m37k36sa1b.fsf at jcooper02.sagepub.com>,
Jock Cooper <jockc at mail.com> wrote:
> Ok so in Python a function can DEF another function in its body. I assume
> this can be returned to the caller. When you have a nested DEF like that,
> is the nested function's name globally visible?
Not by default, but it can be made to be via an appropriate "global"
declaration.
--
David Eppstein http://www.ics.uci.edu/~eppstein/
Univ. of California, Irvine, School of Information & Computer Science
More information about the Python-list
mailing list