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

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

 



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

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]