[Python-Dev] PyObject_SetAttr - is it the only way types should set attributes?

Andrew Kuchling akuchlin@mems-exchange.org
Wed, 15 Aug 2001 12:49:42 -0400

On Wed, Aug 15, 2001 at 12:06:25PM -0400, Jeremy Hylton wrote:
>C code can manipulate __dict__, too, right?  It's a pretty common
>idiom to get a module dictionary and use PyDict_SetItem().  

But most commonly that's only done in the C extension's init*()
function, right?