Charles R. Twardy

Follow @ctwardy on Micro.blog.

Python Anti-Pattern: Default Mutable Arguments

@SourceryAI found a bad habit I didn’t know I had: def f(names: list=[]):.   This would be nearly impossible to debug.

docs.sourcery.ai/suggestio…