Skip to content

Commit ebb2a21

Browse files
Upd of print func to py3 syntax
1 parent 266b4c4 commit ebb2a21

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/scenarios/speed.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -176,17 +176,17 @@ What's the difference in speed? Let's try it!
176176
#primes implemented with Python
177177
import primes
178178
179-
print "Cython:"
179+
print("Cython:")
180180
t1= time.time()
181-
print primesCy.primes(500)
181+
print(primesCy.primes(500))
182182
t2= time.time()
183-
print "Cython time: %s" %(t2-t1)
184-
print ""
185-
print "Python"
183+
print("Cython time: %s" %(t2-t1))
184+
print("")
185+
print("Python")
186186
t1= time.time()
187-
print primes.primes(500)
187+
print(primes.primes(500))
188188
t2= time.time()
189-
print "Python time: %s" %(t2-t1)
189+
print("Python time: %s" %(t2-t1))
190190
191191
192192
These lines both need a remark:

0 commit comments

Comments
 (0)