There was an error while loading. Please reload this page.
1 parent 266b4c4 commit ebb2a21Copy full SHA for ebb2a21
docs/scenarios/speed.rst
@@ -176,17 +176,17 @@ What's the difference in speed? Let's try it!
176
#primes implemented with Python
177
import primes
178
179
-print "Cython:"
+print("Cython:")
180
t1= time.time()
181
-print primesCy.primes(500)
+print(primesCy.primes(500))
182
t2= time.time()
183
-print "Cython time: %s" %(t2-t1)
184
-print ""
185
-print "Python"
+print("Cython time: %s" %(t2-t1))
+print("")
+print("Python")
186
187
-print primes.primes(500)
+print(primes.primes(500))
188
189
-print "Python time: %s" %(t2-t1)
+print("Python time: %s" %(t2-t1))
190
191
192
These lines both need a remark:
0 commit comments