Ralf Juengling <juenglin at informatik.uni-freiburg.de> writes: > 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'? if ((retval == -1) && PyErr_Occurred()) { waagh! } Cheers, M.