[Pyrex] Passing c pointers to a class method

Greg Ewing greg at cosc.canterbury.ac.nz
Wed May 5 03:32:39 CEST 2004


"John (J5) Palmieri" <johnp at redhat.com>:

> Ok, so is there a way to pass a C pointer into a method?

If you want to pass a C pointer around in Python code,
you'll have to wrap it in a genuine Python object of
some kind, either an extension type or a PyCObject.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+




More information about the Pyrex mailing list