need the unsigned value from dl.call()

eliss eliss.carmine at gmail.com
Mon Dec 10 21:50:59 EST 2007


I'm using dl.call() to call a C function in an external library. It's
working great so far except for one function, which returns an
unsigned int in the C version. However, in python it returns a signed
value to me. How can I get the unsigned value from this? I haven't
brushed up on my two's complement in a while, so I was hoping someone
could give me a hand.

Thanks

eliss



More information about the Python-list mailing list