[Libguestfs] [PATCH 1/2] Add type checking, support integers as value

Richard W.M. Jones rjones at redhat.com
Tue Aug 12 10:42:22 UTC 2014


On Tue, Aug 12, 2014 at 12:39:08PM +0200, Peter Wu wrote:
> > TBH I'm not sure why you're using PyLong_AsLong{,Long} here at all.
> 
> To convert a PyObject to a long.

OK got it.  For some reason I was reading that as conversion in the
opposite direction.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top




More information about the Libguestfs mailing list