Moshe> * Did not DECREF result from displayhook function ... Moshe> w = PyEval_CallObject(w, x); Moshe> + Py_XDECREF(w); Moshe> if (w == NULL) ... While it works, is it really kosher to test w's value after the DECREF? Just seems like an odd construct to me. I'm used to seeing the test immediately after it's been set. Skip