From: Stefan Behnel Date: Sun, 2 Mar 2008 10:59:40 +0000 (+0100) Subject: Py3k fixes X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=53960e83611d32689aed3e60bc964fb2339b7bf9;p=cython.git Py3k fixes --- diff --git a/Demos/callback/run_cheese.py b/Demos/callback/run_cheese.py index 65fd431b..2e5d6cbc 100644 --- a/Demos/callback/run_cheese.py +++ b/Demos/callback/run_cheese.py @@ -1,7 +1,7 @@ import cheese def report_cheese(name): - print "Found cheese:", name + print("Found cheese: " + name) cheese.find(report_cheese) diff --git a/Demos/pyprimes.py b/Demos/pyprimes.py index edcce852..7c524224 100644 --- a/Demos/pyprimes.py +++ b/Demos/pyprimes.py @@ -4,7 +4,7 @@ def primes(kmax): n = 2 while k < kmax: i = 0 - while i < k and n % p[i] <> 0: + while i < k and n % p[i] != 0: i = i + 1 if i == k: p.append(n)