[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] RHashtable and the python bindings



On Wed, 2013-04-03 at 19:19 +0100, Richard W.M. Jones wrote:
> From ba0199c487feec7f02cfc00ba3e900e6fa5ed4d8 Mon Sep 17 00:00:00 2001
> From: "Richard W.M. Jones" <rjones redhat com>
> Date: Wed, 3 Apr 2013 18:58:43 +0100
> Subject: [PATCH] python: Let RHashtable be returned as a Python dict.
> 
> The initial proposal was suggested by Matt Booth and discussed on the
> mailing list here:
> 
> https://www.redhat.com/archives/libguestfs/2013-April/msg00007.html
> ---
>  generator/python.ml                | 43
> ++++++++++++++++++++++++++++++++------
>  python/examples/create_disk.py     |  6 +++++-
>  python/examples/guestfs-python.pod | 13 +++++++++++-
>  python/examples/inspect_vm.py      | 19 +++++++----------
>  python/t/010-basic.py              |  2 +-
>  python/t/028-python-dict.py        | 34
> ++++++++++++++++++++++++++++++
>  python/t/060-optargs.py            |  2 +-
>  python/t/400-events.py             |  2 +-
>  python/t/800-explicit-close.py     |  6 +++---
>  python/t/rhbz811650.py             |  2 +-
>  10 files changed, 103 insertions(+), 26 deletions(-)
>  create mode 100644 python/t/028-python-dict.py

ACK. It hadn't occurred to me to transform this in python. It's a much
more expedient patch. It will make sense to update the C when this is
ultimately removed, though.

Matt


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]