[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH v2 4/9] iotests: Use // for Python integer divis
From: |
Eduardo Habkost |
Subject: |
Re: [Qemu-block] [PATCH v2 4/9] iotests: Use // for Python integer division |
Date: |
Fri, 19 Oct 2018 17:01:55 -0300 |
User-agent: |
Mutt/1.9.2 (2017-12-15) |
On Fri, Oct 19, 2018 at 09:15:18PM +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 v2 0/9] iotests: Make them work for both Python 2 and 3, Max Reitz, 2018/10/19
- [Qemu-block] [PATCH v2 3/9] iotests: Use Python byte strings where appropriate, Max Reitz, 2018/10/19
- [Qemu-block] [PATCH v2 2/9] iotests: Flush in iotests.py's QemuIoInteractive, Max Reitz, 2018/10/19
- [Qemu-block] [PATCH v2 1/9] iotests: Make nbd-fault-injector flush, Max Reitz, 2018/10/19
- [Qemu-block] [PATCH v2 7/9] iotests: 'new' module replacement in 169, Max Reitz, 2018/10/19
- [Qemu-block] [PATCH v2 4/9] iotests: Use // for Python integer division, Max Reitz, 2018/10/19
- [Qemu-block] [PATCH v2 8/9] iotests: Modify imports for Python 3, Max Reitz, 2018/10/19
- [Qemu-block] [PATCH v2 5/9] iotests: Different iterator behavior in Python 3, Max Reitz, 2018/10/19
- [Qemu-block] [PATCH v2 6/9] iotests: Explicitly inherit FDs in Python, Max Reitz, 2018/10/19