Py_BuildValue And ULARGE_INTEGERS
John Abel
johnfabel at btinternet.com
Thu Feb 27 14:21:14 EST 2003
OK, problem (sorta) solved. I dug through docs, and found a different
string value "LLL", which is for long long's (_int64 on Win32). Just a
note for anyone looking for the same thing, the formatting strings are
dotted around the docs (Extending and Embeding & Python/C API).
Anyone any ideas how I get rid of the L from numbers ? :)
Thanks
John
John Abel wrote:
> Hi,
>
> I have a routine coded in C, that is being returned a ULARGE_INTEGER.
> I'm using Py_BuildValue ( "iiiiii", retOne, retTwo, retThree) to
> return the values back. However, I am getting spurious figures with
> some of the values. Does anyone know if Python can handle such large
> figures? Can someone point me in the right direction?
> I'm using Python on Win2000 with V Studio 6, the call is
> GetDiskFreeSpaceEx (
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/getdiskfreespaceex.asp).
>
>
> Any pointers would be much appreciated.
>
> Thanks
>
> John
>
>
More information about the Python-list
mailing list