[Pyrex] compiler dislikes 'pointer to object'

Greg Ewing greg at cosc.canterbury.ac.nz
Wed Jun 23 05:24:04 CEST 2004


David McNab <david at rebirthing.co.nz>:

> As part of an optimisation, I'm replacing a python list with a C array 
> of pointers to object.
> 
> Would it be possible at some stage for Pyrex to support 'pointer to 
> object' and other similar C types?

It's very unlikely, because I don't know how Pyrex would be able to
manage reference counting for such types.

Are you sure your "optimisation" is really of much help?  A Python
list essentially *is* an array of pointers to objects. Do you really
need to invent one of your own?

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