Restart the interactive python shell like in IDLE

Matt Burson msburson at gmail.com
Wed Jun 10 15:01:13 EDT 2009


Is there a way to reproduce the behavior of IDLE's restart shell ability by
using a function? I thought there would be since you can exit python by
executing the simple quit() function I thought there would be an equally
simple function name something like restart(). I'd prefer something like
this as opposed to having to exit the shell and then start it up again to
refresh it.

-- 
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090610/c6e18c67/attachment.html>


More information about the Python-list mailing list