|
From: | Eric Blake |
Subject: | Re: [PATCH v4 06/12] qcow2_format.py: use strings to specify c-type of struct fields |
Date: | Fri, 5 Jun 2020 15:19:21 -0500 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 |
On 6/4/20 12:41 PM, Vladimir Sementsov-Ogievskiy wrote:
We are going to move field-parsing to super-class, this will be simpler with simple string specifiers instead of variables. For some reason python doesn't allow to define ctypes in class too, as well as fields: it's not available than in 'for' operator. Don't worry: ctypes will be moved to metaclass soon.
Grammar suggestion:For some reason, python doesn't allow the definition of ctypes in the class alongside fields: it would not be available then for use by the 'for' operator.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> --- tests/qemu-iotests/qcow2_format.py | 50 +++++++++++++++++------------- 1 file changed, 28 insertions(+), 22 deletions(-)
-- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org
[Prev in Thread] | Current Thread | [Next in Thread] |