> 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
"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_
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,
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
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