Re: Setting value of Python variable in a Python C extension

2007-10-01 Thread Carsten Haese
On Mon, 2007-10-01 at 09:42 -0700, MD wrote: > Hi Carsten, > Thanks for your reply. I am a newbie on Python so your help is > much appreciated. My program structure is basically like this . > (rough representation) > test.py >var1 = "" >rc = func1 (var1) > > test.c > func1(*v1)

Re: Setting value of Python variable in a Python C extension

2007-10-01 Thread MD
Hi Carsten, Thanks for your reply. I am a newbie on Python so your help is much appreciated. My program structure is basically like this . (rough representation) test.py var1 = "" rc = func1 (var1) test.c func1(*v1) { strcpy(v1, "Hello World"); } So basically I want to modif

Re: Setting value of Python variable in a Python C extension

2007-10-01 Thread Carsten Haese
On Mon, 2007-10-01 at 09:08 -0700, MD wrote: > Hi, >I have a function developed in C that is being used as a Python > extension. The function is being passed a variable from the Python > program. Is it possible to change the value of this variable from > within the C function? That question is

Setting value of Python variable in a Python C extension

2007-10-01 Thread MD
Hi, I have a function developed in C that is being used as a Python extension. The function is being passed a variable from the Python program. Is it possible to change the value of this variable from within the C function? Thanks, -MD -- http://mail.python.org/mailman/listinfo/python-list