From: Navindra Umanee Date: 2005-02-14T16:46:22+09:00 Subject: Re: Printing why's (poignant) guide to ruby > > def fib: > > a, b = 1, 1 > > while true: > > yield a > > a, b = b, a+b > > > > It fails. Ask why! Because are missing '()' after 'fib'. > > Um yeah the whole program is syntactically wrong. Fortunately Python > tells you there's an error on practically every single line. Whoops. Okay the whole program is not syntactically wrong... I cut and paste the code into the interpreter instead of trying it from a file, so it rejected everything since it couldn't get past the first line. I also got confused seeing "yield" there. Hmm, I didn't know Python supported that. Later, Navin.