Re: How to I restart an interactive session?

2005-03-19 Thread Diez B. Roggisch
> But, by deleting their namespace entries haven't I effectively unloaded > them? In other words, from the point of the interpreter, isn't the No. You haven't I'm not entirely sure why - that's deep in the internals of python - but I know for sure that reload() is not working fully as expected in

Re: How to I restart an interactive session?

2005-03-18 Thread Mike Meyer
"markscottwright" <[EMAIL PROTECTED]> writes: > But, by deleting their namespace entries haven't I effectively unloaded > them? In other words, from the point of the interpreter, isn't the > state at point A and point B the same? > > --- point A: > import os > del __main__.__dict_

Re: How to I restart an interactive session?

2005-03-18 Thread markscottwright
But, by deleting their namespace entries haven't I effectively unloaded them? In other words, from the point of the interpreter, isn't the state at point A and point B the same? --- point A: import os del __main__.__dict__['os'] --- point B I guess my question boils down to,

Re: How to I restart an interactive session?

2005-03-18 Thread Diez B. Roggisch
markscottwright wrote: > I'm trying to cobble together an IDLE equivalent using pyshell and VIM > (My idea is just to pipe exec file commands from VIM to pyshell via a > socket or something). The one feature that IDLE has that I would > really like but can't seem to duplicate is the "Restart Shel

How to I restart an interactive session?

2005-03-18 Thread markscottwright
I'm trying to cobble together an IDLE equivalent using pyshell and VIM (My idea is just to pipe exec file commands from VIM to pyshell via a socket or something). The one feature that IDLE has that I would really like but can't seem to duplicate is the "Restart Shell" command. Delving through the