class attributes and inner classes in C extensions

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • harold fellermann

    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.
    --

Working...