here is good starting point : http://superjared.com/entry/anatomy-python-c-module/
On Thu, Feb 4, 2010 at 2:29 PM, VIJAY KUMAR <[email protected]> wrote: > 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 > > vijay > > > > Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! > http://downloads.yahoo.com/in/internetexplorer/ > _______________________________________________ > BangPypers mailing list > [email protected] > http://mail.python.org/mailman/listinfo/bangpypers > -- Madhu Sudhan Sunkara _______________________________________________ BangPypers mailing list [email protected] http://mail.python.org/mailman/listinfo/bangpypers
