Re: How to change a PyObject passed to the C extension

2007-08-11 Thread Marc 'BlackJack' Rintsch
On Sat, 11 Aug 2007 09:43:19 -0700, MD wrote: >I have a Python C extension which is passed a PyObject containing > an integer value. Is it possible to change this same PyObject so that > now the integer is of a different value? No it is not. Even if you poke around in the object ``struct`` t

How to change a PyObject passed to the C extension

2007-08-11 Thread MD
Hi, I have a Python C extension which is passed a PyObject containing an integer value. Is it possible to change this same PyObject so that now the integer is of a different value? Thanks and Regards, -MD -- http://mail.python.org/mailman/listinfo/python-list