Skip to content
On this page

Python

Memray is useful python memory profiler. Minimum Viable Python is a good overview.

Ruff is nice linter.

Taichi language is interesting as it's embedded Python but with parallel code execution.

Notes

Code

python
# read file line by line
with open('filename') as f:
    content = f.readlines()
python
# Iterate over list
for i, _ in enumerate(nums):
  ..