Neal Norwitz writes: > Doesn't that need to be Py_XDECREF(readmethod); instead of Py_DECREF()? > readmethod is NULL if a PyFileObject is passed in. > The other places below seem to handle this correctly. Yes; I managed to mis-apply Jeremy's patch. Now fixed. -Fred -- Fred L. Drake, Jr. <fdrake at acm.org> PythonLabs at Zope Corporation