wafrat
  • Home
Subscribe

python

A collection of 2 posts
python

How to compute things in parallel in Python

I had a loop that could be parallelized and wanted to take advantage of my CPU cores. A quick search led me to https://docs.python.org/3/library/asyncio-task.html#running-tasks-concurrently. It looked simple enough: define your methods as async, then run them with a gather. However, I realized
Jun 10, 2021
python

Finding the Python reference docs

Since I'm a total Python beginner, I frequently need to read about its common built-in functions and idioms. Docs * https://docs.python.org/3/. Check out the Tutorial and Library Reference. * Built-in functions: https://docs.python.org/3/library/functions.html * https://docs.python.org/3/library/stdtypes.html#sequence-types-list-tuple-range
Feb 9, 2021 — 2 min read
wafrat © 2025