Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #14316 > unrolled thread

Bug#1016891: ITP: flake8-mutable -- use flake8 to catch functions with mutable default arguments

Started byEdward Betts <edward@4angle.com>
First post2022-08-09 11:20 +0200
Last post2022-08-09 11:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.debian.maint.python


Contents

  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

#14316 — Bug#1016891: ITP: flake8-mutable -- use flake8 to catch functions with mutable default arguments

FromEdward Betts <edward@4angle.com>
Date2022-08-09 11:20 +0200
SubjectBug#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.

[toc] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web