Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #14316 > unrolled thread
| Started by | Edward Betts <edward@4angle.com> |
|---|---|
| First post | 2022-08-09 11:20 +0200 |
| Last post | 2022-08-09 11:20 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.debian.maint.python
Bug#1016891: ITP: flake8-mutable -- use flake8 to catch functions with mutable default arguments Edward Betts <edward@4angle.com> - 2022-08-09 11:20 +0200
| From | Edward Betts <edward@4angle.com> |
|---|---|
| Date | 2022-08-09 11:20 +0200 |
| Subject | Bug#1016891: ITP: flake8-mutable -- use flake8 to catch functions with mutable default arguments |
| Message-ID | <EStz3-gZvp-1@gated-at.bofh.it> |
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.
Back to top | Article view | linux.debian.maint.python
csiph-web