no Py_DECREF of PyModule_GetDict return?

Skip Montanaro skip at pobox.com
Thu Dec 26 09:22:00 EST 2002


    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/




More information about the Python-list mailing list