Phying News
Curated security research, vulnerabilities, advisories and tools for practitioners.

Python Pitfalls: The Perils of Using Lists and Dicts as Default Arguments

Summary

Explains Python's mutable default argument pitfall, where lists and dicts defined in function signatures persist across calls, and shows how to avoid it.
Published
Collected

original ↗

Related coverage

back