Re: [libvirt] [PATCH] python: keep consistent handling of Python integer conversion

2012-10-08 Thread Guannan Ren
On 10/01/2012 04:08 PM, Michal Privoznik wrote: On 28.09.2012 14:29, Guannan Ren wrote: libvirt_ulonglongUnwrap requires the integer type of python obj. But libvirt_longlongUnwrap still could handle python obj of Pyfloat_type which causes the float value to be rounded up to an integer. For

Re: [libvirt] [PATCH] python: keep consistent handling of Python integer conversion

2012-10-01 Thread Michal Privoznik
On 28.09.2012 14:29, Guannan Ren wrote: libvirt_ulonglongUnwrap requires the integer type of python obj. But libvirt_longlongUnwrap still could handle python obj of Pyfloat_type which causes the float value to be rounded up to an integer. For example

[libvirt] [PATCH] python: keep consistent handling of Python integer conversion

2012-09-28 Thread Guannan Ren
libvirt_ulonglongUnwrap requires the integer type of python obj. But libvirt_longlongUnwrap still could handle python obj of Pyfloat_type which causes the float value to be rounded up to an integer. For example dom.setSchedulerParameters({'vcpu_quota': 0.88}) 0 libvirt_longlongUnwrap treats