Path: csiph.com!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: Scott Kitterman Newsgroups: linux.debian.maint.python Subject: Re: Python 3.7 or 3.6 in Buster Date: Mon, 05 Nov 2018 18:40:01 +0100 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Mon Nov 5 17:36:01 2018 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.1 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -5 X-Greylist: delayed 542 seconds by postgrey-1.36 at bendel; Mon, 05 Nov 2018 17:35:47 UTC Dkim-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=kitterman.com; i=@kitterman.com; q=dns/txt; s=201803e; t=1541438802; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type : from : subject : date; bh=mg2tN4BM6mvpM4ch9Ec1jN13QWPsCfKq8bIst4LW+dc=; b=wazNAO/5i+QbiPcoZg1JsNytBr9n+V3kaxzTLn7R+FdlAMops3FZM14I 7wpJUNCT7vIrO1YhS0S1fWO1GKfsDg== Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kitterman.com; i=@kitterman.com; q=dns/txt; s=201803r; t=1541438802; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type : from : subject : date; bh=mg2tN4BM6mvpM4ch9Ec1jN13QWPsCfKq8bIst4LW+dc=; b=mnuYPAYvSRS6Sxv1u1xlbtwonRIH3bfKbHLK2PSiK0cfFFCv13n7NR7S jY4SyVbyG1BHMqpjOjOx3moGc3TyOYIacVcdftLSceLnrMK1oR13xKXBnJ RfBxdhti+DwGcD1VUNuNuj1sS3B8rgyqmfpypn7urGuZAjnpuSLPf9CcuC 1BJhgAzK+Bhyms7mKyS7CFANxmZMrLQmGZlu6R8EIGdsYpIFP1apyDXcPC S+gsRdYi9H+r1KEtnvpRVDXvxtkmY4rW7JcdMn591+0j1Agfyg4ifov6AF HOCdzRm5dQfX2KOx6RTfTtBbpS7l159pO0H1lfVRnPLJ/Iz0bIKLeA== User-Agent: KMail/4.13.3 (Linux/3.13.0-158-generic; KDE/4.13.3; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Mailing-List: archive/latest/16503 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/3141712.GBT29uzeI4@kitterma-e6430 Approved: robomod@news.nic.it Lines: 48 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 05 Nov 2018 12:26:41 -0500 X-Original-Message-ID: <3141712.GBT29uzeI4@kitterma-e6430> X-Original-References: Xref: csiph.com linux.debian.maint.python:11068 On Monday, November 05, 2018 05:31:36 PM Ondrej Novy wrote: > Hi, >=20 > po 5. 11. 2018 v 9:09 odes=C3=ADlatel Thomas Goirand napsal: > > Do other fellow DD also think it's kind of ok to keep 3.7 in Buster= ? >=20 > +1 for keeping 3.7 in Buster and switch defaults to 3.7. I recently got burned by changes in the way re.sub works in python3.7 (= see [1]=20 and search for re.sub, [2], and [3]). From the whatsnew: > re.sub() now replaces empty matches adjacent to a previous non-empty = match. > For example re.sub('x*', '-', 'abxd') returns now '-a-b--d-' instead = of > '-a-b-d-' (the first minus between =E2=80=98b=E2=80=99 and =E2=80=98d= =E2=80=99 replaces =E2=80=98x=E2=80=99, and the second > minus replaces an empty string between =E2=80=98x=E2=80=99 and =E2=80= =98d=E2=80=99). This change broke canonicalization in dkimpy. Once I knew about it, I = fixed=20 it, but the default 'import foo' autopkgtests we have on so many module= s won't=20 find this (I don't think, it didn't in my case). I only found out about it due to an upstream bug report on OS X. No on= e in=20 Debian (or Ubuntu) reported it. Does anyone have an idea about how common problems from this change mig= ht be? =20 That particular package uses re.sub 8 times and only one use was proble= matic. In any case, I don't have anything other than a vague concern based on = one of=20 my packages that there are more hidden problems. Scott K [1] https://docs.python.org/3/whatsnew/3.7.html [2] https://bugs.python.org/issue25054 [3] https://bugs.python.org/issue32308