[Python-Dev] setting class attributes from C?

David Abrahams David Abrahams" <david.abrahams@rcn.com
Tue, 5 Mar 2002 00:38:28 -0500


----- Original Message -----
From: "Fred L. Drake, Jr." <fdrake@acm.org>
To: <python-dev@python.org>
Sent: Tuesday, March 05, 2002 12:08 AM
Subject: [Python-Dev] setting class attributes from C?


>
> Has anyone tried setting class attributes on a new-style class in C?

Yes, Boost.Python V2 does this without any problems. Of course, I'm
using PyObject_SetAttr rather than PyObject_SetAttrString (not that that
should make any difference).

-Dave