Hi, PyInt_AsLong() returns '-1ยด to indicate an error, this meets the convetion for PyXXX()-functions which return integers. But how do you distinguish an '-1' indicating an error from a the legal long-value '-1'? Cheers, Ralf