From: "Michał Górny" <mgorny@gentoo.org>
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.
Date: Mon, 11 Aug 2014 23:06:19 +0200 [thread overview]
Message-ID: <20140811230619.12acc2d0@pomiot.lan> (raw)
In-Reply-To: <1407345968-20693-1-git-send-email-mgorny@gentoo.org>
[-- Attachment #1: Type: text/plain, Size: 613 bytes --]
Dnia 2014-08-06, o godz. 19:26:08
Michał Górny <mgorny@gentoo.org> napisał(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.
>
> 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.
--
Best regards,
Michał Górny
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 949 bytes --]
next prev parent reply other threads:[~2014-08-11 21:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-06 17:26 [gentoo-portage-dev] [PATCH] Use __future__ to enable floating-point division of integers in Python 2 Michał Górny
2014-08-11 8:43 ` [gentoo-portage-dev] [PATCH v2] " Michał Górny
2014-08-11 21:06 ` Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-08-11 19:51 [gentoo-portage-dev] [PATCH] " Michał Górny
2014-08-11 21:07 ` Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140811230619.12acc2d0@pomiot.lan \
--to=mgorny@gentoo.org \
--cc=gentoo-portage-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox