Path: csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: Andrey Rahmatullin 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 11:10:02 +0200 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Sep 12 09:02:01 2019 Old-Return-Path: X-Amavis-Spam-Status: No, score=-12 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, LDO_WHITELIST=-5, PGPSIGNATURE=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -3.5 Dkim-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=wrar.name; s=20160710; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:To:From:Date:From:Sender:Reply-To:Subject:Date: Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=O7nXmFLgwCoKRCL/8T9aT+0DlOs5PRAxPbZnTcwTO+8=; b=AwCo10BsCsw3+ilFnTW4s+5ew e83SeZqiuS5cmAelm76EyRMiMWKTqfavkyr/kzdadquXhX06yQIvdj6gbiq0UytfjyG9CgA1+Of+c qSqXrBAq4pagXMUx/Q+7vRAAzyMJFiX7N72q/Se8X/nrv4e34ViisXeHTxwWqfIWFGMG4=; MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="uxuisgdDHaNETlh8" Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Mailing-List: archive/latest/17318 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20190912090147.GE1706@belkar.wrar.name Approved: robomod@news.nic.it Lines: 48 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 12 Sep 2019 14:01:47 +0500 X-Original-Message-ID: <20190912090147.GE1706@belkar.wrar.name> X-Original-References: <20190910055047.otdspqnnnpkd55hp@an3as.eu> <0025d815-6a10-4dbb-a1ce-745b1f371fbf@debian.org> Xref: csiph.com linux.debian.maint.python:11792 --uxuisgdDHaNETlh8 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 12, 2019 at 08:30:20AM +0200, Thomas Goirand wrote: > I wont comment on the relative import ambiguity problem, as Ghislain > replied correctly. However, I do want to comment on 2to3. >=20 > I generally recommend against using it, in the favor of other tools. For > example, you can use sixer, which I maintain in Debian, and often used > (and abused) to do Python 3 conversions. There's also 2to6, which I > don't know much about, but I've read it works about the same way as > sixer (which was specifically written for OpenStack). >=20 > 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. I can add to this that it's non-trivial to convert from six to normal Py3 code, unless there are some tools that I didn't find. And it's really time to do that, not to convert TO six. --=20 WBR, wRAR --uxuisgdDHaNETlh8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJhBAABCgBLFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAl16CXstFIAAAAAAFQAP cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEDNi9wMaSZLh EegP/1jxFX2rAeMYhkhcPFWOqbxsd8EZmFcN7G4xGs2OGLfC394MUqH9COEgVk/R 9eSrmdXZcerru44CZUhh8yrsxXOVllZuqgNbmUhKWLOAq+PEsaihMuyKYyRCEem9 B4D/ibTwlQxCRKsFdNisqco4PqQA7vj5lqw6H+EpV17wkDquNEPKDlrrLpJM5FaU eprbj95oOw+0X7XUzL+l17b6S7fPQ5N4VsCwEIfdh8mZo0Gkyz53NYx9kWnd4kQY BlUSbLP1TDMNJ/QpYyH6U6dVrGlHZWAwpCappNwesTJsOlyjDGKTL/5wg5CeQl56 qctpLW91Yp/AI050ZjZomj88a7moibgrjkVsfahLIILtZ5nQIt6K0BNuVDmhgHvF aVO1gIo1z9uszRvz6Pdq+qbBGoPZFtTPQnphUZkJdu+syPv3MtcxHg2Z4h0dCPxq rtgMrNexEJPC+qsJ8kC2gfEZaj4vRrEoXQorv++hSfr8G76p0t8TqqG14Sz2uCZS iYG1+FK6sx5PvTXyye2/m2cB9jjFS1lWA6Vt1y3agyKMrCtODrgmpZl3FtKduI8d wl6/AXLh6B6yXzRFgtqxT0tA3AUMzRAAWv8QGvV092UyHpZRynmtMm16zjP1P8eL IRCLrsEerPoF1qKofZbUTjDO8XtHWmv01ZmmiBvqs2OPx9nC =xMXK -----END PGP SIGNATURE----- --uxuisgdDHaNETlh8--