469,915 Members | 2,599 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,915 developers. It's quick & easy.

Adding instance attributes to types

I have written a C module which implements a new Python type, and
implemented data attributes for the type using PyGetSetDef/tp_getset.
However, I want to allow instances of this type to have additional data
attributes which also have get() and set() functions. (This might be
better suited to use inherited classes or types, but the differences
would be very minor). Is this possible?

Mar 19 '06 #1
0 762

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Steven D'Aprano | last post: by
8 posts views Thread by fix | last post: by
19 posts views Thread by Sjaakie Helderhorst | last post: by
5 posts views Thread by Water Cooler v2 | last post: by
reply views Thread by =?Utf-8?B?R3JlZyBDbGFyaw==?= | last post: by
3 posts views Thread by zslevi | last post: by
11 posts views Thread by =?Utf-8?B?TTFpUw==?= | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.