Menu

Commit [r10304]  Maximize  Restore  History

Redesign of the setup of the names spaces for the user functions.

All the user functions and other objects located in the run() method namespace have been shifted
into the interpreter self._locals dictionary. These are then placed into the run() method namespace
by looping over the keys and using the 'locals()[key] = object' syntax. There may be better ways to
do this.

This has no visible effect on the prompt or script based interfaces. It will change how this is
seen by other modules though, and will allow the namespace to be more easily accessed.

bugman 2010-01-25

changed /1.3/prompt/interpreter.py
/1.3/prompt/interpreter.py Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.