How to parse or build unsigned short value?

Xiaohong Yuan xhyuan at oe.fau.edu
Wed Jun 23 09:56:10 EDT 1999


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





More information about the Python-list mailing list