Jon Perez wrote: > ...and instead down-cast the result of PyInt_AsLong() when > the PyObject was an integer in the first place?? Yes, but a Python integer is "not the same" as a C integer. Python integers are implemented using a C long. Vincent Wehren