[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH 4/9] iotests: Use // for Python integer division
From: |
Eduardo Habkost |
Subject: |
Re: [Qemu-block] [PATCH 4/9] iotests: Use // for Python integer division |
Date: |
Mon, 15 Oct 2018 16:54:17 -0300 |
User-agent: |
Mutt/1.9.2 (2017-12-15) |
On Mon, Oct 15, 2018 at 04:14:48PM +0200, Max Reitz wrote:
> In Python 3, / is always a floating-point division. We usually do not
> want this, and as Python 2.7 understands // as well, change all integer
> divisions to use that.
>
> Signed-off-by: Max Reitz <address@hidden>
Reviewed-by: Eduardo Habkost <address@hidden>
--
Eduardo
- [Qemu-block] [PATCH 5/9] iotests: Different iterator behavior in Python 3, (continued)
- [Qemu-block] [PATCH 5/9] iotests: Different iterator behavior in Python 3, Max Reitz, 2018/10/15
- [Qemu-block] [PATCH 3/9] iotests: Use Python byte strings where appropriate, Max Reitz, 2018/10/15
- [Qemu-block] [PATCH 4/9] iotests: Use // for Python integer division, Max Reitz, 2018/10/15
- [Qemu-block] [PATCH 6/9] iotests: Explicitly inherit FDs in Python, Max Reitz, 2018/10/15
- [Qemu-block] [PATCH 7/9] iotests: 'new' module replacement in 169, Max Reitz, 2018/10/15