Re: IDLE confusion

2006-05-17 Thread Scott David Daniels
Christophe wrote: > Terry Reedy a écrit : >> "Christophe" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >> >>> Try in the IDLE menu [Shell] "Restart Shell" (Ctrl+F6) each time you >>> have changed something in your files - this "resets" anything previously >>> imported, which stay

Re: IDLE confusion

2006-05-17 Thread Christophe
Terry Reedy a écrit : > "Christophe" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>Try in the IDLE menu [Shell] "Restart Shell" (Ctrl+F6) each time you >>have changed something in your files - this "resets" anything previously >>imported, which stays the same way otherwise. >

Re: IDLE confusion

2006-05-17 Thread [EMAIL PROTECTED]
This isn't really an IDLE issue, it's a Python feature which needs to be understood. In Python, once you've imported a module once, importing it again is ignored. This works fine under the assumption that modules don't change during a single Python session. However, when you're developing a module

Re: IDLE confusion

2006-05-16 Thread Terry Reedy
"Christophe" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Try in the IDLE menu [Shell] "Restart Shell" (Ctrl+F6) each time you > have changed something in your files - this "resets" anything previously > imported, which stays the same way otherwise. And I though that "bug" was f

Re: IDLE confusion

2006-05-16 Thread Christophe
Claudio Grondi a écrit : > MrBlueSky wrote: > >> Hi, I'm trying to use IDLE to develop My First Python App and my head >> hurts... >> >> I've a file called spalvi.py with this in it: >> from Test import * >> firstTest("Mike") >> >> And a file called Test.py with this in it: >> def firs

Re: IDLE confusion

2006-05-16 Thread Claudio Grondi
MrBlueSky wrote: > Hi, I'm trying to use IDLE to develop My First Python App and my head > hurts... > > I've a file called spalvi.py with this in it: > from Test import * > firstTest("Mike") > > And a file called Test.py with this in it: > def firstTest(name): > print "Yo",nam

IDLE confusion

2006-05-16 Thread MrBlueSky
Hi, I'm trying to use IDLE to develop My First Python App and my head hurts... I've a file called spalvi.py with this in it: from Test import * firstTest("Mike") And a file called Test.py with this in it: def firstTest(name): print "Yo",name I open spalvi.py with IDLE and Run