Another (perhaps similar) import question

Dan Yamins dyamins at gmail.com
Fri Jun 13 21:51:42 EDT 2008


>>
>>
>
> Please keep responses to python-list discussion on python-list,  not my
> personal mail box. -- Thanks.
>

Sorry.  When I hit "reply" on gmail to your message, your personal email
comes up as opposed to the python list address.  My apologies for not
looking for closely.



> I'd suggest using modules for your system's code, and exec (or execfile) to
> read and parse user supplied code snippets.   The result of an exec of user
> supplied code will be very similar to a module import, and it will be using
> import and exec as they were intended.


Wow, thanks very much for introducing my to the execfile command, I've been
looking for something like it.  I see how this removes the issue of needing
reload.  Great.  Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080613/b6ffcb41/attachment-0001.html>


More information about the Python-list mailing list