Lance> Does anyone know why there's no Lance> Py_DECREF(pdict); Lance> where Lance> pdict = PyModule_GetDict(pmod); Have a look at the docs for that function to be sure, but my guess is that PyModule_GetDict returns a borrowed reference to pmod's dictionary. -- Skip Montanaro - skip at pobox.com http://www.musi-cal.com/ http://www.mojam.com/