[libvirt] [PATCH 6/6] python: Add python bindings for virDomainMemoryStats

Adam Litke agl at us.ibm.com
Fri Dec 18 16:13:08 UTC 2009


On Fri, 2009-12-18 at 00:41 +0100, Matthias Bolte wrote:

> You're using the old tags (VIR_MEMSTAT_*) and names (free_memory,
> total_memory) here.

Argh.  I forgot to commit my local changes to the python patch :(  This
is done and will appear in the next series.

> You could convert the adjacent if blocks into and if/else if block or
> a switch block.

Sure.  I will play around with it and see if I can spruce the look of
this code up a bit.

> You're also silently ignoring unknown tags here, but that should be
> handled at the libvirt C API level if it should be handled at all.

Ignoring unknown tags allows us to inter-operate with a newer remote
libvirt version.  So this semantic should be okay. 

-- 
Thanks,
Adam




More information about the libvir-list mailing list