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

  2. Robert Harrison

    Mike Rovner Guest

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

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

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:
    438
    John J. Lee
    Jan 17, 2004
  2. user
    Replies:
    1
    Views:
    521
    Jack Klein
    Jul 11, 2005
  3. Bhan
    Replies:
    10
    Views:
    891
    mlimber
    Sep 19, 2005
  4. Stephan Hoffmann
    Replies:
    2
    Views:
    753
    Stephan Hoffmann
    Dec 11, 2005
  5. Taran
    Replies:
    6
    Views:
    613
    Default User
    Apr 20, 2006
  6. Replies:
    1
    Views:
    636
    myork
    May 23, 2007
  7. Replies:
    1
    Views:
    540
    Victor Bazarov
    May 23, 2007
  8. Replies:
    2
    Views:
    933
Loading...