Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #11068
| From | Scott Kitterman <debian@kitterman.com> |
|---|---|
| Newsgroups | linux.debian.maint.python |
| Subject | Re: Python 3.7 or 3.6 in Buster |
| Date | 2018-11-05 18:40 +0100 |
| Message-ID | <wQR0Z-7Ms-7@gated-at.bofh.it> (permalink) |
| References | <wQI7o-2EI-7@gated-at.bofh.it> <wQQeB-7ht-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Monday, November 05, 2018 05:31:36 PM Ondrej Novy wrote:
> Hi,
>
> po 5. 11. 2018 v 9:09 odesílatel Thomas Goirand <zigo@debian.org> napsal:
> > Do other fellow DD also think it's kind of ok to keep 3.7 in Buster?
>
> +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]
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 ‘b’ and ‘d’ replaces ‘x’, and the second
> minus replaces an empty string between ‘x’ and ‘d’).
This change broke canonicalization in dkimpy. Once I knew about it, I fixed
it, but the default 'import foo' autopkgtests we have on so many modules won't
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 one in
Debian (or Ubuntu) reported it.
Does anyone have an idea about how common problems from this change might be?
That particular package uses re.sub 8 times and only one use was problematic.
In any case, I don't have anything other than a vague concern based on one of
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
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Python 3.7 or 3.6 in Buster Thomas Goirand <zigo@debian.org> - 2018-11-05 09:10 +0100
Re: Python 3.7 or 3.6 in Buster Michael Hudson-Doyle <michael.hudson@canonical.com> - 2018-11-05 09:40 +0100
Re: Python 3.7 or 3.6 in Buster Matthias Klose <doko@debian.org> - 2018-11-05 10:40 +0100
Re: Python 3.7 or 3.6 in Buster Matthias Klose <doko@debian.org> - 2018-11-21 18:30 +0100
Re: Python 3.7 or 3.6 in Buster Thomas Goirand <zigo@debian.org> - 2018-11-05 16:30 +0100
Re: Python 3.7 or 3.6 in Buster Ondrej Novy <novy@ondrej.org> - 2018-11-05 17:50 +0100
Re: Python 3.7 or 3.6 in Buster Scott Kitterman <debian@kitterman.com> - 2018-11-05 18:40 +0100
Re: [SUSPECTED SPAM] Re: Python 3.7 or 3.6 in Buster Jerome Kieffer <Jerome.Kieffer@esrf.fr> - 2018-11-05 20:40 +0100
Re: [SUSPECTED SPAM] Re: Python 3.7 or 3.6 in Buster Scott Kitterman <debian@kitterman.com> - 2018-11-05 21:10 +0100
Re: [SUSPECTED SPAM] Re: Python 3.7 or 3.6 in Buster Matthias Klose <doko@debian.org> - 2018-11-06 09:50 +0100
csiph-web