469,336 Members | 5,570 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

class attributes and inner classes in C extensions

Hello,

I just posted this question with a wrong subject... So here again with
a better one.

I am working on a C extension module that implements a bunch of
classes. Everything
works fine so far, but I cannot find any way to implement class
attributes or inner
classes. Consider you have the following lines of Python :

class Foo :
class Bar :
pass

spam = "foobar"

How can this class be translated to a C extension? Is there anything
comparable to
PyMethodDef that can be used for other attributes than functions?

Thanks for your help,

- harold -

--
Always remember that you are unique;
just like everyone else.
--

Jul 18 '05 #1
0 832

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

15 posts views Thread by Guenther Sohler | last post: by
4 posts views Thread by Vedanta Barooah | last post: by
6 posts views Thread by Gaijinco | last post: by
8 posts views Thread by Mayur H Chauhan | last post: by
5 posts views Thread by Calvin Spealman | last post: by
3 posts views Thread by Cousson, Benoit | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Marylou17 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.