[BangPypers] Help -- Python with C

VIJAY KUMAR vnbang2003 at yahoo.com
Thu Feb 4 09:59:29 CET 2010

Hi ,
    I wanted to call the function defined in C in to python module.
     C filedummy_c_module.c contains below 
       int dummy_c_function(int value)
           int ret;
           ret = value + 5;
           return ret;     
  I have Python module  dummy_p_module.py 
  from dummy_c_module import dummy_c_function
  a = dummy_c_function(22)
   print a

how can we do the this. Am using Ubuntu OS.

Thanks in advance.

with regards


      Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! http://downloads.yahoo.com/in/internetexplorer/

More information about the BangPypers mailing list