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
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.
>
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
"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
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
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
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