Bug#1016891: ITP: flake8-mutable -- use flake8 to catch functions with mutable default arguments
Package: wnpp
Severity: wishlist
Owner: Edward Betts <edward@4angle.com>
X-Debbugs-Cc: debian-devel@lists.debian.org, debian-python@lists.debian.org
* Package name : flake8-mutable
Version : 1.2.0
Upstream Author : Matthew Ebeweber <mebeweber@gmail.com>
* URL : https://github.com/ebeweber/flake8-mutable
* License : MIT
Programming Lang: Python
Description : use flake8 to catch functions with mutable default arguments
Python's default arguments are evaluated at definition as opposed to when the
function is invoked. This leads to unexpected behavior, as mutations persist
between calls. This flake8 extension will warn for this type of mistake.
I plan to maintain this package as part of the Python team.
Reply to: