Skip to content

Commit 727edfe

Browse files
authored
Code formatting cleanup
1 parent ebb2a21 commit 727edfe

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

docs/scenarios/speed.rst

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -168,25 +168,23 @@ What's the difference in speed? Let's try it!
168168
.. code-block:: python
169169
170170
import time
171-
#activate pyx compiler
171+
# Activate pyx compiler
172172
import pyximport
173-
pyximport.install()
174-
#primes implemented with Cython
175-
import primesCy
176-
#primes implemented with Python
177-
import primes
173+
pyximport.install()
174+
import primesCy # primes implemented with Cython
175+
import primes # primes implemented with Python
178176
179177
print("Cython:")
180-
t1= time.time()
178+
t1 = time.time()
181179
print(primesCy.primes(500))
182-
t2= time.time()
183-
print("Cython time: %s" %(t2-t1))
180+
t2 = time.time()
181+
print("Cython time: %s" % (t2 - t1))
184182
print("")
185183
print("Python")
186-
t1= time.time()
184+
t1 = time.time()
187185
print(primes.primes(500))
188-
t2= time.time()
189-
print("Python time: %s" %(t2-t1))
186+
t2 = time.time()
187+
print("Python time: %s" % (t2 - t1))
190188
191189
192190
These lines both need a remark:

0 commit comments

Comments
 (0)