Difference in Python and Ruby interactive shells

Nick Craig-Wood nick at craig-wood.com
Mon Apr 10 07:30:04 EDT 2006


Lou Pecora <pecoraREMOVE at THISanvil.nrl.navy.mil> wrote:
>  Impressive, but YIKES, there ought to be a simpler way to do this.  I 
>  think during the development phase editing and reloading would be very 
>  common and you'd want everything updated.

Sorry I missed this thread...

This is what I use which is easy and works just fine.  I only type it
once and then press up arrow to get it back!

  import workinprogress; reload(workinprogress); del(workinprogress); from workinprogress import *

That gives you the module and all its globals rebound.

-- 
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick



More information about the Python-list mailing list