C API: passing by reference
"Martin v. Löwis"
martin at v.loewis.de
Sat Jun 23 14:31:01 EDT 2007
stuart.tett at gmail.com schrieb:
> I'm writing my own python extension module with the C API. In python
> all functions pass arguments by reference
Can you please show an example what you mean by that? There is no
"pass-by-reference" in Python: a function can not normally modify
the variable in the caller.
When you show what precisely you want to achieve, it should be easy
to say how to do that in C.
Regards,
Martin
More information about the Python-list
mailing list