Skip to content

Latest commit

 

History

History
571 lines (561 loc) · 74 KB

File metadata and controls

571 lines (561 loc) · 74 KB
title Python

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

Ruff is nice linter.

Notes

Code

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

Links