From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 2F7AD1381F3 for ; Tue, 21 May 2013 11:20:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BC5E2E07F5; Tue, 21 May 2013 11:20:42 +0000 (UTC) Received: from vms173013pub.verizon.net (vms173013pub.verizon.net [206.46.173.13]) by pigeon.gentoo.org (Postfix) with ESMTP id 47637E07F5 for ; Tue, 21 May 2013 11:20:42 +0000 (UTC) Received: from odin.tremily.us ([unknown] [72.68.85.10]) by vms173013.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0MN500811BI13O90@vms173013.mailsrvcs.net> for gentoo-catalyst@lists.gentoo.org; Tue, 21 May 2013 06:20:26 -0500 (CDT) Received: by odin.tremily.us (Postfix, from userid 1000) id E9A499A7328; Tue, 21 May 2013 07:20:24 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tremily.us; s=odin; t=1369135224; bh=LFGuGuHpJaOinTj9cRPA/6LXuqaLO1kReRG1zqZhGQI=; h=Date:From:To:Subject:References:In-Reply-To; b=XejTzlZl8JvSpg8/at+xi9uqmEJ75BcqKXOUcR/bT2Y6+ZMfobfSFYhy7C4GIwE4v 0rLnarW4zxmt3jTnNMBrebJpfozgT2h74UQVrferAKA5RZF04D3Kz60oBUboL24LQW xTvJogGM7wWaABqGwQ281oU9dSIpXZpxA3VRumS8= Date: Tue, 21 May 2013 07:20:24 -0400 From: "W. Trevor King" To: gentoo-catalyst@lists.gentoo.org Subject: Re: [gentoo-catalyst] Python 3 support Message-id: <20130521112024.GN23990@odin.tremily.us> References: <519A9044.2050104@case.edu> <1369089959.30989.22.camel@big_daddy.dol-sen.ca> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bxfI0o3bCF0nmU/u" Content-disposition: inline In-reply-to: OpenPGP: id=39A2F3FA2AB17E5D8764F388FC29BDCDF15F5BE8; url=http://tremily.us/pubkey.txt User-Agent: Mutt/1.5.21 (2010-09-15) X-Archives-Salt: 664d5c9c-84a2-4a3e-b174-82d0d59f0aef X-Archives-Hash: 6faa6f61a1fb29edf326d7baa7b1d355 --bxfI0o3bCF0nmU/u Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 21, 2013 at 12:33:28PM +0200, Dmitry Selyutin wrote: > Even more, I'd like to avoid some generators and provide this > support manually: I've always hated generators, especially code > generators (and GUI ones). Generators? Are you referring to 2to3? I think anyone converting a Python project from Python 2 to Python 3 would be cray not to use it. They'd also be crazy if they just assumed that it generated optimal code ;). It's best to run it, and then go double check to make sure all the changes are meaningful. Keep stuff like [1]: - raise CatalystError, "Could not open file " + fil= ename + raise CatalystError("Could not open file " + file= name) but drop stuff like: - for x in self.values.keys(): + for x in list(self.values.keys()): Cheers, Trevor [1]: Although see 305cde6 (Massive pyflakes import cleanup and broken CatalystError calls, 2013-01-19) in dolsen's branch. There will also be lots of `print ...` =E2=86=92 `print(...)` changes, which are needed unless we replaced them with calls to a logging logger [2]. [2]: http://thread.gmane.org/gmane.linux.gentoo.catalyst/2085/focus=3D2103 --=20 This email may be signed or encrypted with GnuPG (http://www.gnupg.org). For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy --bxfI0o3bCF0nmU/u Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQIcBAEBAgAGBQJRm1h2AAoJEEUbTsx0l5OMTAQP/1phrnUDp03j500NwnNvdgC9 xzluI+1sB9O8Argib68HnlgrPdxeDtIz75bHiEai6On0jGHP9zlnaKcsd3yqAemq Qx0kjQLIMaE5ChVZVLRCC2t2lmSark0lwOt3/Fj7kv+lip5t5HMoH4ym7T3/N2bC WqBvhiRdRl6S7SPb2wxmWKuan+DQkwOarHha3mtBDy/n74UGWN4klqftTPy4RJFM 3yBnl34Mk3lK3VuyJtWlPPW2DWVp0k4z71pgGY1zy6QeUugeNXUECgVCyF3zTEvF 6UcNmtEc/Uq8142hvl2tyzNb4N9D4MV3JHVgv5rzbZMmvJNFddICEJfEfwMUT6nF 2tHcq4/0916Ve+iujyFzkgmd+evnhglonBFofeI6XsYqrBQLOv+K3O0YpX3OHj0M umF/noXgAGz22GH5zDLrAYKeWSwHesvZPTPkDOuuTudCUfVZfdWj7wUdSw0/BPs9 PA/Rk8JCWeJDwuc+VV3iXQK/MpM/YThtUjREcwQsrVWfpUx03MAlww5qSpJzR2gi rmq7ookyTI+Sq+IkmXEzxpbk4/APnms6jrh46CSn86/gWLA0bM9GvoLPqDlx41p6 aq4HJDM6Y7U0Z0yh89HBH+t3OwDIBIaOhY2Lq/T7T9jkbBQAbqssjZh2Lw75/bI6 23X8Tk2aW7o9yeWwCu1g =Ea/N -----END PGP SIGNATURE----- --bxfI0o3bCF0nmU/u--