Restart the interactive python shell like in IDLE

Matt Burson msburson at
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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list