__getattr__ functionality for modules?

Stefan Franke franke at ableton.com
Mon May 19 13:22:44 EDT 2003


On 19 May 2003 11:07:52 GMT, Troels Therkelsen <t_therkelsen at hotmail.com> wrote:

>This is a wild shot, but maybe what you're looking for is the so-called
>sandbox functionality?  There used to be a (buggy) module for it called
>rexec, but for various reasons it is no longer part of the official 
>standard lib of v2.3.
>
[...]

Hmm, apart from the fact that the module is deprecated: How would I
enable this functionality on the command line. That would require
a Python shell within Python, wouldn't it?

Being able to replace __builtin__ with a dict-like object for instance
would much better appeal to my taste..

/s





More information about the Python-list mailing list