Windows, IDLE, __doc_, other
W. eWatson
wolftracks at invalid.com
Mon Dec 28 13:10:00 EST 2009
Lie Ryan wrote:
> On 12/22/2009 12:06 PM, W. eWatson wrote:
...
> You must be starting IDLE without subprocess. Did you see this message
>
> IDLE 2.6.1 ==== No Subprocess ====
>
> when starting IDLE.
Yes, I usually start in a folder where I have my py program files, and
do a right-click for IDLE edit.
>
> If you're on Windows, don't use the "Edit with IDLE" right-click hotkey
> since that starts IDLE without subprocess. Use the shortcut installed in
> your Start menu.
When I go to Start and select IDLE, Saves or Opens want to go into
C:/Python25. I have to motor over to my folder where I keep the source
code. The code is in a folder about 4 levels below the top. That's a bit
awkward.
What do subprocesses mean in this context? Why do I need them?
>
>>> line: "a = 1". I choose Run Module, and it runs it. I verify in the
>>> interactive interpreter that a is 1. I then change that file to "a = a
>>> + 1", and run it. Now, it errors out-- of course-- because IDLE
>>> "cleared" the namespace and re-ran the module.
>> Hmmm, that appears to contrary to my numpy experience. I've never seen
>> any re-starting msg.
>> Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit
>> (Intel)] on win32
>> Type "copyright", "credits" or "license()" for more information.
>
> That is irrelevant with numpy. If you start IDLE with subprocess, then
> every time before you run a script this message appears:
>
> >>> ============================= RESTART =============================
>
> PS: you can force IDLE to restart the subprocess with Ctrl+F6
>
>>> It says in the interpreter its restarting, even.
>
> When IDLE is not run with subprocess, running a script is equivalent to
> copy and pasteing the script to the shell.
I just tried Ctrl+F6 on both the shell and script window. Nothing
happened. Does that occur only if I fired up Python from Start?
Does a restart clear out the namespace?
More information about the Python-list
mailing list