[Python-Dev] PyObject_SetAttr - is it the only way types should set attributes?
Skip Montanaro
skip@pobox.com (Skip Montanaro)
Wed, 15 Aug 2001 11:00:52 -0500
In thinking about the implementation of TRACK_GLOBAL some more, I'm trying
to figure out where object updating is going to take place. Is
PyObject_GenericSetAttr the only way C-based objects should set attributes?
If so, that would be a central place to provide this functionality.
Otherwise, I fear that a lot of C code will have to be twiddled to provide
this functionality.
I worry especially about third-party extension modules. Accordingly, I took
a look at
http://www.python.org/doc/ext/dnt-type-methods.html
Unfortunately, that section seems to be truncated (in the TeX source as
well). I filed a bug report:
http://sourceforge.net/tracker/index.php?func=detail&aid=451217&group_id=5470&atid=105470
Skip