#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Posts
    52
    Rep Power
    13

    Learning the Python/C API


    Aside from the actual documentation by Guido van Rossum, are there any texts anyone can recommend for actually understanding the API? I'm not really looking for a C tutorial but just something to help understand it (some kind of reference). Thanks.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2004
    Location
    London, England
    Posts
    1,585
    Rep Power
    1373
    Most of the books on general Python programming have a chapter on integrating with C.
    Some that spring to mind are:

    Programming Python by Mark Lutz (O'Reilly)
    Python in a Nutshell (O'reilly)
    Python 2.1 Bible (Hungry Minds)

    There are also lots of tools that do much of the dirty work of writing C/C++ extensions for you. e.g.

    SWIG (http://www.swig.org)
    Pyrex (http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/)
    Boost library for C++ (http://www.boost.org/libs/python/doc/index.html)

    Dave - The Developers' Coach

IMN logo majestic logo threadwatch logo seochat tools logo