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.
> 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
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
> 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
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
[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
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 = ''
> 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
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
>
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
10 matches
Mail list logo