[BangPypers] Help -- Python with C
Madhusudhan sunkara
madhusudhan.sunkara at gmail.com
Thu Feb 4 10:05:05 CET 2010
here is good starting point :
http://superjared.com/entry/anatomy-python-c-module/
On Thu, Feb 4, 2010 at 2:29 PM, VIJAY KUMAR <vnbang2003 at yahoo.com> 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
> BangPypers at python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>
--
Madhu Sudhan Sunkara
More information about the BangPypers
mailing list