c/c++ implementation of python base and derived class

Discussion in 'Python' started by Robert Harrison, Jul 16, 2003.

  1. Can anyone point me to an example of how,
    in C or C++, to

    1) implement a new-style Python class, and
    2) derive another new class from it?

    I think that I've managed to do 1) correctly,
    but 2) eludes both me and google.

    Thanks in advance

    Robert
     
    Robert Harrison, Jul 16, 2003
    #1
    1. Advertising

  2. Robert Harrison

    Mike Rovner Guest

    Mike Rovner, Jul 16, 2003
    #2
    1. Advertising

  3. Boost is indeed pretty powerful and cool, but I
    was trying to understand the actual implementation.

    A bit more searching shows that all is revealed in
    the relevant PEP

    http://www.python.org/peps/pep-0253.html
     
    Robert Harrison, Jul 17, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Devrim Erdem
    Replies:
    1
    Views:
    376
    John J. Lee
    Jan 17, 2004
  2. Replies:
    4
    Views:
    428
    Alf P. Steinbach
    May 23, 2007
  3. Replies:
    1
    Views:
    405
    myork
    May 23, 2007
  4. Replies:
    1
    Views:
    396
    Victor Bazarov
    May 23, 2007
  5. Replies:
    2
    Views:
    722
Loading...

Share This Page