Home / Guides / Self-Hosting & Infra
Python Gotchas: Late-Binding Lambdas, Exhausted Generators, Mutating While Iterating and Shared Lists
Executed examples on Python 3.10: [lambda: i for i in range(3)] returning [2, 2, 2], default argument and functools.partial fixes, one-shot generators, map and iterators, RuntimeError on dict mutation, list.remove skipping items, and [[0]*2]*2.
Read the full guide
The complete walkthrough is $0.01 — or free to read on the site after a quick check. AI agents can buy it directly over x402 with no account.
Open in the Knowledge Base Agent API →