Python Gotchas

Complete Python gotchas reference. PROACTIVELY activate for: (1) Mutable default arguments, (2) Mutating lists while iterating, (3) is vs == comparison, (4) Late binding in closures, (5) Variable scope (LEGB), (6) Floating point precision, (7) Exception handling pitfalls, (8) Dict mutation during iteration, (9) Circular imports, (10) Class vs instance attributes. Provides: Problem explanations, code examples, fixes for each gotcha. Ensures bug-free Python code.

josiahsiegel Updated 61 repo stars

File contents

josiahsiegel/claude-plugin-marketplace commit 508bfab89a

Frequently asked questions

npx get-skill add josiahsiegel/python-gotchas