[Tutor] why the error?

Remco Gerlich scarblac@pino.selwerd.nl
Wed, 31 May 2000 01:22:03 +0200


On Tue, May 30, 2000 at 03:31:27PM -0500, Timothy Wilson wrote:
> Isn't the reason that it worked in the interpreter because I was passing an
> integer directly?
> 
> >>> isPrime(17)
> 17 is prime.

Yes, well, the poster probably thought you were doing all of it in the
interpreter, including the raw_input().

Btw, if you want to see a cool implementation of a prime number generator,
see Demo/scripts/prime.py in the source distribution (that was the reason
for this mail, noone mentioned this yet ;-)).

-- 
Remco Gerlich,  scarblac@pino.selwerd.nl