Re: [Tutor] IDLE Caching

2006-07-24 Thread Bugra Cakir
let me dig into documentation before thinking in the blind :) thanks a lot Alan !On 7/25/06, Alan Gauld < [EMAIL PROTECTED]> wrote:> So from the answers, i want to imagine how python exercise the code > when you push the button execute. My guess before looking at the> docs> or other material,>> 1.

Re: [Tutor] IDLE Caching

2006-07-24 Thread Alan Gauld
> So from the answers, i want to imagine how python exercise the code > when you push the button execute. My guess before looking at the > docs > or other material, > > 1. check python syntax > 2. transform to byte code. > 3. execute the byte code. What you have is correct for a main program. If

Re: [Tutor] IDLE Caching

2006-07-24 Thread Bugra Cakir
So from the answers, i want to imagine how python exercise the codewhen you push the button execute. My guess before looking at the docsor other material,1. check python syntax 2. transform to byte code.3. execute the byte code. ___ Tutor maillist - Tut

Re: [Tutor] IDLE Caching

2006-07-24 Thread Alan Gauld
> class Tree: > >def Tree(self): >self.rootNode = None >def Tree(self, rootNode): >self.rootNode = rootNode This second definition overrides the first - you cannot do function overloading based on parameters in Python. > > t = Tree() > n = Node() These just create instan

Re: [Tutor] IDLE Caching

2006-07-24 Thread Bugra Cakir
Really, I have realized the difference Luke said. However sometimes IDLE runs theold version, this is the thing I cant realized.On 7/24/06, Luke Paireepinart <[EMAIL PROTECTED]> wrote: [snip code]> look at this code. Edit this code with IDLE. For example change one of> the 'self' statement> in the

Re: [Tutor] IDLE Caching

2006-07-24 Thread Luke Paireepinart
[snip code] > look at this code. Edit this code with IDLE. For example change one of > the 'self' statement > in the code. For instance change self => slf then save the file and > press F5(Run Module) > It doesn't complain about the code !!! this is my problem. > I think maybe you're just confuse

Re: [Tutor] IDLE Caching

2006-07-24 Thread Bugra Cakir
class Tree:    def Tree(self):    self.rootNode = None    def Tree(self, rootNode):    self.rootNode = rootNode    def getRootNode(self):    return self.rootNode    def setRootNode(self, rootNode):     self.rootNode = rootNodeclass Node:    def Node(self):    self.content = ''  

Re: [Tutor] IDLE Caching

2006-07-24 Thread Alan Gauld
> I have a problem with IDLE on Windows. > While I'm executing a python script in IDLE subsequence > editing and executions on the file sometimes doesn't reflect the > changes. This is a common issue, you are presumably importing your program rather than using IDLE's save/run feature? If so you w

Re: [Tutor] IDLE Caching

2006-07-23 Thread Luke Paireepinart
Bugra Cakir wrote: > Hi, > > I have a problem with IDLE on Windows. > While I'm executing a python script in IDLE subsequence you mean subsequent :) > editing and executions on the file sometimes doesn't reflect the changes. > For example, i changed the file then save it, execute it, although i >

[Tutor] IDLE Caching

2006-07-23 Thread Bugra Cakir
Hi,I have a problem with IDLE on Windows.While I'm executing a python script in IDLE subsequenceediting and executions on the file sometimes doesn't reflect the changes.For example, i changed the file then save it, execute it, although i changed the file, IDLE shows the previous version of the file