[Tutor] Silly question: Modifying code while the script is running

Scott Wolcott scottwolcott at gmail.com
Mon Feb 18 23:17:21 CET 2008


Okay, I've got this ircbot that i wrote in python, and while we were all
making Terminator jokes, it occurred to me that it would actually be
reletively easy to have redqueen (that's the bot) write code into another
file. Then you just have to specify the file and import the code and run it.
It sounds possible, but there are a couple of things i'm not sure how to do.


The biggest problem is I'm not sure how to run the external code. Does
anyone know of good way to do this, or can someone just point me in the
right direction?

-Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20080218/01e5cb8f/attachment.htm 


More information about the Tutor mailing list