On Mon, Jun 29, 2009 at 1:46 PM, wesley chun<wes...@gmail.com> wrote: > take your function definition and store in a file called, say > showmodule.py. then put the remaining code inside something like > foo.py. at the top of foo.py, you'll need: > > from showmodule import show > > then everything else will work.
I don't think so. The exec in show() must be run in the namespace in which the symbols being displayed are defined. Kent _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor