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

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
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 Tue, 09 Aug 2022 11:20:01 +0200
Message-ID <EStz3-gZvp-1@gated-at.bofh.it> (permalink)
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Tue Aug 9 09:15:11 2022
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -3.76
Reply-To Edward Betts <edward@4angle.com>, 1016891@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc debian-devel@lists.debian.org, debian-python@lists.debian.org, wnpp@debian.org
X-Debian-Pr-Message report 1016891
X-Debian-Pr-Package wnpp
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1728522
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 18
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Tue, 9 Aug 2022 10:13:45 +0100
X-Original-Message-ID <20220809091345.5ytlzaifpi4wg66y@4angle.com>
Xref csiph.com linux.debian.bugs.dist:1112520 linux.debian.devel:105269 linux.debian.maint.python:14316

Cross-posted to 3 groups.

Show key headers only | 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