embedding Python in C

Curtis Jensen cjensen at be-research.ucsd.edu
Wed Dec 22 18:57:57 EST 1999


>From a C file, how can I get values from a Python Class?  
For Example:

File: Test.py
class Klass:
  def __init__(self):
    self.a = 1
    self.b = 2
    self.c = 3

How can I get the values of a,b, and c from within a C function?
Thanks

-- 
Curtis Jensen
cjensen at be-research.ucsd.edu
http://www-bioeng.ucsd.edu/~cjensen/
FAX (425) 740-1451



More information about the Python-list mailing list