Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #11790
| Path | csiph.com!weretis.net!feeder7.news.weretis.net!news.albasani.net!tahina.priv.at!bofh.it!news.nic.it!robomod |
|---|---|
| From | Andreas Tille <andreas@an3as.eu> |
| Newsgroups | linux.debian.maint.python |
| Subject | Re: 2to3 adds '.' in front dir of "from dir import ..." statements (Was: [MoM] lefse migration to python 3]) |
| Date | Thu, 12 Sep 2019 09:50:02 +0200 |
| Message-ID | <yFs1A-2N4-7@gated-at.bofh.it> (permalink) |
| References | <yEHm1-4FK-1@gated-at.bofh.it> <yFrIe-2FV-5@gated-at.bofh.it> <yFrIe-2FV-3@gated-at.bofh.it> |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Thu Sep 12 07:45:37 2019 |
| Old-Return-Path | <andreas@an3as.eu> |
| X-Amavis-Spam-Status | No, score=-7 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -4.6 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | NeoMutt/20170113 (1.7.2) |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/17315 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/20190912074523.s2oaztpeuwagz2cv@an3as.eu |
| Approved | robomod@news.nic.it |
| Lines | 31 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Thu, 12 Sep 2019 09:45:23 +0200 |
| X-Original-Message-ID | <20190912074523.s2oaztpeuwagz2cv@an3as.eu> |
| X-Original-References | <20190910055047.otdspqnnnpkd55hp@an3as.eu> <0025d815-6a10-4dbb-a1ce-745b1f371fbf@debian.org> <d4ffdd32-51fd-11c3-5dae-e55d529ee758@schokokeks.org> |
| Xref | csiph.com linux.debian.maint.python:11790 |
Show key headers only | View raw
Hi Michael,
On Thu, Sep 12, 2019 at 09:22:06AM +0200, Michael Kesper wrote:
> On 12.09.19 08:30, Thomas Goirand wrote:
> > I wont comment on the relative import ambiguity problem, as Ghislain
> > replied correctly. However, I do want to comment on 2to3.
> >
> > I generally recommend against using it, in the favor of other tools.
> ...
> >
> > The advantage is that you'll get a source code that will work on both
> > Python 2 and 3. It's generally a way more easy to submit upstream, which
> > may not want to loose Python 2 compatibility.
>
> We should stop caring about that.
> Python2 will be EOL'ed at January 1, 2020 [0].
> Python2 will vanish from next Debian release.
> Please convert into idiomatic Python3 code, that's the sane way going forward.
I agree here. @Thomas: We talked about sixer at DebConf (thanks for
the hint in any case). But I consider the additional dependency it
introduces something I'd like to avoid if possible. So I first try my
luck with 2to3 (and I admit I observed some surprises which did not made
me that lucky at all) before I'd use sixer as fallback.
Kind regards
Andreas.
--
http://fam-tille.de
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
2to3 adds '.' in front dir of "from dir import ..." statements (Was: [MoM] lefse migration to python 3]) Andreas Tille <andreas@an3as.eu> - 2019-09-10 08:00 +0200
Re: 2to3 adds '.' in front dir of "from dir import ..." statements (Was: [MoM] lefse migration to python 3]) Ghislain Vaillant <ghisvail@gmail.com> - 2019-09-10 08:30 +0200
Re: 2to3 adds '.' in front dir of "from dir import ..." statements (Was: [MoM] lefse migration to python 3]) Michael Kesper <mkesper@schokokeks.org> - 2019-09-12 09:30 +0200
Re: 2to3 adds '.' in front dir of "from dir import ..." statements (Was: [MoM] lefse migration to python 3]) Andreas Tille <andreas@an3as.eu> - 2019-09-12 09:50 +0200
Re: 2to3 adds '.' in front dir of "from dir import ..." statements (Was: [MoM] lefse migration to python 3]) Andrey Rahmatullin <wrar@debian.org> - 2019-09-12 11:10 +0200
csiph-web