|
You are here |
blog.ian.stapletoncordas.co | ||
| | | | |
yasoob.me
|
|
| | | | | Hi people! Recently, I was super confused when I found out that: >>> pow(3,89) runs slower than: >>> 3**89 I tried to think of a suitable answer but couldn't find any. I timed the execution of both of these statements using the timeit module in Python3: $ python3 -m timeit 'pow(3,89)' 500000 loops, best of 5: 688 nsec per loop $ python3 -m timeit '3**89' 500000 loops, best of 5: 519 nsec per loop The difference is not big. | |
| | | | |
bfontaine.net
|
|
| | | | | Tips and tricks in Python, Bash, Clojure and other languages/environments. | |
| | | | |
thomashodson.com
|
|
| | | | | Safely sharing objects between Python and Rust using PyO3 | |
| | | | |
antelang.org
|
|
| | | |||