Subclassing types in C

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • William Studenmund

    #1

    Subclassing types in C

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    I used the embedding python guide to embed python in an application
    to let me easily script the app. It's all working rather well, and
    I've added a number of types which expose the internals to python.

    However I've gotten to the point where I want to add classes for part
    of the interface, and these class really should be subclasses of
    another one of my types. Well, subtypes. The Embedding guide doesn't
    cover this.

    I found PEP 253, which partially covers this. It indicates that I
    should be able to do this. However: 1) the "Creating a subtype of a
    built-in type in C" section has an "XXX there should be a paragraph
    or two about argument passing here" comment, and 2) the PEP's
    abstract has an editor's note indicating that the PEP no longer
    describes the implementation.

    So what do I need to do? Are the instructions in the PEP still correct?

    Take care,

    Bill
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.1 (Darwin)

    iD8DBQFEahdIDJT 2Egh26K0RAuJIAJ 406DDdXTu6VEfcW 1yWa2Hg4wIIQACf VuCH
    SBrwJOCqHIHZdFn dfzJBMbo=
    =aPMN
    -----END PGP SIGNATURE-----
Working...