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 713E3138A2F for ; Mon, 11 Aug 2014 21:06:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0E781E0CD6; Mon, 11 Aug 2014 21:06:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 70452E0CD4 for ; Mon, 11 Aug 2014 21:06:38 +0000 (UTC) Received: from pomiot.lan (77-255-25-239.adsl.inetia.pl [77.255.25.239]) (using SSLv3 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 5571734022F; Mon, 11 Aug 2014 21:06:36 +0000 (UTC) Date: Mon, 11 Aug 2014 23:06:19 +0200 From: =?ISO-8859-2?B?TWljaGGzIEfzcm55?= To: gentoo-portage-dev@lists.gentoo.org Subject: Re: [gentoo-portage-dev] [PATCH] Use __future__ to enable floating-point division of integers in Python 2. Message-ID: <20140811230619.12acc2d0@pomiot.lan> In-Reply-To: <1407345968-20693-1-git-send-email-mgorny@gentoo.org> References: <1407345968-20693-1-git-send-email-mgorny@gentoo.org> Organization: Gentoo X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.24; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/Ka4WpZD/uSN7akvH9Tbmw/k"; protocol="application/pgp-signature" X-Archives-Salt: 76a033cf-d23e-4ac4-b625-78ebaa25d6a9 X-Archives-Hash: 83c2ccd140bd16b20edcf1418ad6073a --Sig_/Ka4WpZD/uSN7akvH9Tbmw/k Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Dnia 2014-08-06, o godz. 19:26:08 Micha=B3 G=F3rny napisa=B3(a): > In Python 2, the division ('/') operator defaults to integer > (truncating) division when given integer argument. In Python 3, it > performs floating-point division unconditionally instead. To overcome > this difference and get a consistent behavior, integers were converted > to floats explicitly in a few places. >=20 > Instead, use a simpler 'from __future__ import division' statement that > enables floating-point division globally in Python 2. The updated patch is in git now. --=20 Best regards, Micha=B3 G=F3rny --Sig_/Ka4WpZD/uSN7akvH9Tbmw/k Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJT6TBLXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2REJCMDdDQzRGMERBRDA2RUEwQUZFNDFC MDdBMUFFQUVGQjQ0NjRFAAoJELB6GurvtEZO4ZIP/jp2AWXy6dlUriFxcJ4riz0i ZBIW1ccQGTLQi0P/r2dfzKvIKooR1bU4g1ELnqu6+x0pbJJFYoO8J2HKwroG9U95 FndiCG2DTsQghpu53HWTL9vxqayxKpwByvxvtqJz5cURgwbVp0qSg8RlCSjPd2YT 8s7sF390B6NOSnnhx/b8ZVZOERDm3a3vT/jc3+SLtXtJ3T32nnqKrmmJEL1BWuMx BBGXgoteqvuDyAkSK9VYUHSYxpZ+VuT7wlauy2VdtmkLzm4+dcn0GG4zJZAvBwaj Zhor3bLanJBz4u4LR74ByumMJLjMaH17tT8re3SklfmfZQUrQMYR35BzJmph6F6U G7Pp+JGjgcjpbqpgMMa9z0d2cLQiP2lmC2G8tCQueFFZyC/KvHhwMB/HF5O4Qrpj c3l0benMJeEqlHTAIJd7EQ0wJFtFrjqAsIRhWzK7nVswyIYIuDXZqE7YSGKebob5 WMfTkdsIGdZHv1Hiq12rwBXjPEkqrB6aKtPeUHcGJOzniyUMsXEXZOCGZ25/Z0lh TdB56jEOx2CaoEmUPtVrteP5LzE5pE38MrDO2mnaYR5nfR+ME0kh8Li/m2zPBNG7 Dk2sXB6cdPE5F0BIO8jUAZt61w1fuYozV/hfcYgBigkAKmhjpnF+u4ElCSkT2VHE Za/K4AU3CNRxtwQRD8p3 =xK7g -----END PGP SIGNATURE----- --Sig_/Ka4WpZD/uSN7akvH9Tbmw/k--