Re: [Tutor] Expression order problem

2005-05-26 Thread Danny Yoo
On Thu, 26 May 2005, William O'Higgins wrote: > I am running into problems with script evaluation order - specifically, > the Python interpreter seems to read and execute scripts line by line. Hi William, Ah! This happens to me too; one common idiom to avoid definition-order issues like this

Re: [Tutor] Expression order problem

2005-05-26 Thread Andrei
William O'Higgins utoronto.ca> writes: > This is a problem if you are used to Perl, where the whole script is > parsed first (Perl also auto-vivifies variables, but that's a different > problem for a different day). Here is a test script: The Python compiler parses the whole script too, can't c

[Tutor] Expression order problem

2005-05-26 Thread William O'Higgins
I am running into problems with script evaluation order - specifically, the Python interpreter seems to read and execute scripts line by line. This is a problem if you are used to Perl, where the whole script is parsed first (Perl also auto-vivifies variables, but that's a different problem for a d