Re: IDLE question: "you may still have to reload nested modules."

2016-03-06 Thread Terry Reedy
On 3/6/2016 7:24 AM, alien2u...@gmail.com wrote: Hello list, I am following "Learning Python: Mark Lutz" and came across following in chapter 3 few days back. What is the copyright date on the copy you have? [quote] * You may still have to reload nested modules. Technically speaking, IDLE's

IDLE question: "you may still have to reload nested modules."

2016-03-06 Thread alien2utoo
Hello list, I am following "Learning Python: Mark Lutz" and came across following in chapter 3 few days back. [quote] * You may still have to reload nested modules. Technically speaking, IDLE's Run->Run Module menu option always runs the current version of the top-level file only; imported

Re: IDLE question

2007-12-16 Thread MRAB
On Dec 16, 4:47 pm, [EMAIL PROTECTED] wrote: > I'm using IDLE for my Python programming. I can't seem to solve one > issue though. Whenever I try to indent a region of code, I simply > select it and hit the tab key, as I usually do in most editors, like > GEdit or Geany on Linux, for instance, and

Re: IDLE question

2007-12-16 Thread Duncan Booth
[EMAIL PROTECTED] wrote: > I'm using IDLE for my Python programming. I can't seem to solve one > issue though. Whenever I try to indent a region of code, I simply > select it and hit the tab key, as I usually do in most editors, like > GEdit or Geany on Linux, for instance, and it works fine. But

Re: IDLE question

2007-12-16 Thread bizcomputing
On Dec 16, 11:47 am, [EMAIL PROTECTED] wrote: > I'm using IDLE for my Python programming. I can't seem to solve one > issue though. Whenever I try to indent a region of code, I simply > select it and hit the tab key, as I usually do in most editors, like > GEdit or Geany on Linux, for instance, an

IDLE question

2007-12-16 Thread rocco . rossi
I'm using IDLE for my Python programming. I can't seem to solve one issue though. Whenever I try to indent a region of code, I simply select it and hit the tab key, as I usually do in most editors, like GEdit or Geany on Linux, for instance, and it works fine. But, if I try to unindent a region of

Re: IDLE question

2005-11-17 Thread bobueland
I made bat file called startidle.bat which I put in C:\Python24 directory. This is how it looks @echo off start C:\Python24\pythonw.exe C:\Python24\Lib\idlelib\idle.py -r C:\Python24\sitecustomize.py exit Now I put a shortcut of startidle.bat in Quick Launch. The only thing I have to do now is to

Re: IDLE question

2005-11-17 Thread Claudio Grondi
<[EMAIL PROTECTED]> wrote > This works! > > Thanks Claudio I am glad, that the time I put into it was not wasted. > For complete happiness I would also like to know what's hapening. > Is there anywhere I can read about PyShell.py. Not that I would know about (except reading the source code). May

Re: IDLE question

2005-11-17 Thread bobueland
This works! Thanks Claudio For complete happiness I would also like to know what's hapening. Is there anywhere I can read about PyShell.py. Bob -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE question

2005-11-17 Thread Claudio Grondi
Here a correction of the code snippet: console.text.mark_gravity("restart", "left") # (-Patch) # making additional modules available in IDLE directly after re-start of it: self.runsource("import os; from path import path") time.sleep(0.1) # (Patch-)

Re: IDLE question

2005-11-17 Thread Claudio Grondi
<[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > I did as you suggested, however > > after I make a new File (File/New Window) and save and then run (F5) I > get the following alert > > The Python Shell is already executing a command; please waith until it > is finished > > I al

Re: IDLE question

2005-11-17 Thread bobueland
I did as you suggested, however after I make a new File (File/New Window) and save and then run (F5) I get the following alert The Python Shell is already executing a command; please waith until it is finished I also get the error message Traceback (most recent call last): File "", line 1, in

Re: IDLE question

2005-11-17 Thread Claudio Grondi
now a patch fixing it I have no good feeling about, but it works: in PyShell.py in def restart_subprocess(self): insert in section: " console.showprompt() # restart subprocess debugger # (-Patch) # making additional modules available in IDLE directly after re-

Re: IDLE question

2005-11-17 Thread bobueland
Okey I tried what you recommended My C:\Python24\sitecustomize.py looks like this: # sitecustomize.py import os from btools import * When I enter C:\Python24>C:\Python24\pythonw.exe C:\Python24\Lib\idlelib\idle.py -r C:\Python24\sitecustomize.py in commad propmt IDLE starts up and automatically

Re: IDLE question

2005-11-17 Thread Claudio Grondi
<[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > IDLE doesn't seem to honor PYTHONSTARTUP environment variable nor > sitecustomize.py > > How do you then customize in IDLE? > > (basically I want to execute the statement >from btools import * > each time I restart IDLEs Pytho

IDLE question

2005-11-17 Thread bobueland
IDLE doesn't seem to honor PYTHONSTARTUP environment variable nor sitecustomize.py How do you then customize in IDLE? (basically I want to execute the statement from btools import * each time I restart IDLEs Python Shell) -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE question

2005-01-02 Thread Kurt B. Kaiser
Ishwor <[EMAIL PROTECTED]> writes: > On Sun, 26 Dec 2004 13:02:01 +0100, Rolf Wester > <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I would like to use IDLE as interactively as I can with Emacs. In Emacs >> I can send a marked region to the Python interpreter. Is there any way >> to do the same thing

Re: IDLE question

2004-12-26 Thread Ishwor
On Sun, 26 Dec 2004 13:02:01 +0100, Rolf Wester <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to use IDLE as interactively as I can with Emacs. In Emacs > I can send a marked region to the Python interpreter. Is there any way > to do the same thing with IDLE? Although i don't use anything much

Re: IDLE question

2004-12-26 Thread Kartic
Rolf, IDLE presents you with an interactive python prompt where you can enter your code : single statments, class definitions, functions and it will execute interactively. >From the IDLE editor, I doubt if you can do what you want. In fact IDLE will force you to save your code in a file before yo

IDLE question

2004-12-26 Thread Rolf Wester
Hi, I would like to use IDLE as interactively as I can with Emacs. In Emacs I can send a marked region to the Python interpreter. Is there any way to do the same thing with IDLE? Thank you in advance Regards Rolf Wester -- http://mail.python.org/mailman/listinfo/python-list