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


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

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

From Edward Betts <edward@4angle.com>
Newsgroups linux.debian.bugs.dist, linux.debian.devel, linux.debian.maint.python
Subject Bug#1016891: ITP: flake8-mutable -- use flake8 to catch functions with mutable default arguments
Date 2022-08-09 11:20 +0200
Message-ID <EStz3-gZvp-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Cross-posted to 3 groups.

Show all headers | View raw


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 linux.debian.maint.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web