Mailing List Archive

How to parse or build unsigned short value?
I am using Py_BuildValue(..), and PyArg_Parse(..) functions. The format
characters are provided for int, short, long, double, float, char type.
However there is no format character for unsigned int, unsigned short,
unsigned long type. Right now I use pack, or unpack of struct module to
deal with unsigned types. Is there any other convenient way to do it?

Thank you very much.

Xiaohong Yuan