Path: csiph.com!4.us.feeder.erje.net!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder7.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: Stuart Prescott Newsgroups: linux.debian.maint.python Subject: Possible MBF for SyntaxWarning with Python 3.8 Date: Thu, 05 Dec 2019 15:20:02 +0100 Message-ID: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Dec 5 14:12:09 2019 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.75 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .nanonanonano. - helo: .mail-pf1-x444.google. - helo-domain: .google.) FROM/MX_MATCHES_NOT_HELO(DOMAIN)=0; rate: -3.5 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nanonanonano-net.20150623.gappssmtp.com; s=20150623; h=sender:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=qudaPFL6B7ukIpRh3pzuXVzhktva3ksYF8A6o7pHrL0=; b=SEcH0cKhz9B0MG9Cwoj340Va7Lt5YfWFu8LP7GlmV+f3uhBpg+fJcw88daoAp4EPPQ JZ35CoKxK17Ce+83D5l7WKm0OeRpWXQVO3ZzRST3o/33YRBb8iTnN75jejp/8dY6oKLY djL3vmcIb7v1gDU4AXb71ZpgAAQDoG4vyu00Bkq+ssj9i6D99CHwNzBW72Kh3R7ZyHYy 1gkyLcBxh6mjNlx1S5O7m4204YciMji5r6tAN8tbPi2+tPK0PTEMHbJMPeHapio6hP99 teDdUlsMmqg198T/Rm5i7vS3y8M+1109jKqZ27T2I1U193AzKd54HffAVuqAwTwF1W7F uheg== X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version:content-transfer-encoding; bh=qudaPFL6B7ukIpRh3pzuXVzhktva3ksYF8A6o7pHrL0=; b=lXtEfUXFrdIdoYe9iXhnhhFrAZzYA2TOn+/WWJVrHBXDxOqVYGVKmnr111zM4W4m74 IolI9G+fzdIL/8+ichRdlTMAzcecmee4+I6eDc/OGwRDkRD6jqreATSTetLHMam8Uxv7 mrjrsPW3EJqsPYfm2NOTTD6FsfSsX0Zi2wAYIu5+tcGgvCb6QURPnEPt5rFE3Ly24Suv gxaEW685FEtjS4BIXOxE7xcYYvONXdCTzCcn+Z4y7EdtnfdUjxestQWmS3kK88VauqEh HPylYJjaZQqikV1fzWD3I4q7rKrnn9Hhnyu5supCWqa9HJQqEgEZbHBthvBMpsxMZCW3 8mQQ== X-Gm-Message-State: APjAAAUAYJi7zkNsz8PXGXJqNoZbZwNdswdmsyTB+sRecJkHA97h6oon e6Yqvh0WNK1/DkKRQ2vSZGMChBt885k= X-Google-SMTP-Source: APXvYqzJXn7B/Tn6rz4v3HBO2+erO82Kaihx3ylbpfKeERt1QxgjPVP5akSilR5zl/mItfs3DpRY7w== X-Received: by 2002:a63:ea4b:: with SMTP id l11mr9312585pgk.357.1575554086301; Thu, 05 Dec 2019 05:54:46 -0800 (PST) Sender: robomod@news.nic.it MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" X-Mailing-List: archive/latest/17707 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/6100629.07Lz3ac2YO@simurgh Approved: robomod@news.nic.it Lines: 74 Organization: linux.* mail to news gateway X-Original-Date: Fri, 06 Dec 2019 00:54:40 +1100 X-Original-Message-ID: <6100629.07Lz3ac2YO@simurgh> X-Original-Sender: Stuart Prescott Xref: csiph.com linux.debian.maint.python:12111 Hi all, Python 3.8 generates a SyntaxWarning when it sees code that is most probably incorrect such as if foo is 0: ... if bar is not 'quux': ... if baz is (): ... When the Debian package is installed, py3compile sees such code and causes a pile of SyntaxWarning messages to be spewed in the middle of the apt run. Since code like the above is wrong and errors are unwelcome for the user (and are likely to generate quite a lot of support requests), I propose an MBF on the issue. Looking through piuparts installation logs for packages in sid, I've so far identified 75 binary packages that emit SyntaxWarning on installation, but that is only the subset of python packages that happen to have been installed by piuparts over the last 60 days. I guess we'll need to continue to look at piuparts logs and that we will find more. Any thoughts? cheers Stuart raw entries from piuparts logs: https://people.debian.org/~stuart/swlog data for bug reports: https://people.debian.org/~stuart/swbugs ddlist: https://people.debian.org/~stuart/swddlist bug template: Subject: {package} generates SyntaxWarning at install time Package: {package} Version: {version} Severity: important Tags: sid bullseye User: debian-python@lists.debian.org Usertags: py38syntaxwarning Dear maintainer, Python 3.8 introduced a series of checks that look for code that is highly likely to be buggy. When the code is processed by Python 3.8, it emits a SyntaxWarning complaining about the code. For Debian packages, these warnings will be visible at package install time. This package generates SyntaxWarning output during package install: {output} Fixing this class of bug is generally straightforward and the upstream developers may have already done so. If there are questions, please ask for help on IRC #debian-python, or the debian-python@lists.debian.org mailing list. -- Stuart Prescott http://www.nanonanonano.net/ stuart@nanonanonano.net Debian Developer http://www.debian.org/ stuart@debian.org GPG fingerprint 90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7