Tim Peters wrote: > It's unclear to me how to write portable ctypes code in the presence > of a gazillion integer typedefs and #defines, such as for Py_ssize_t. A start would be to have constants in the ctypes module for Py_ssize_t and other such Python-defined API types. -- Greg