[Pyrex] Casting Python sequence to pointer and vice versa

Simon Burton simon at arrowtheory.com
Mon Mar 5 16:06:15 UTC 2007


On Mon, 05 Mar 2007 12:13:21 +1300
Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:

> Christian Heimes wrote:
> > IMO malloc & friends are a common construct and often used. I
> > suggest that you either add them to the documentation or declare them as
> > cdef in Pyrex's core.
> 
> I'm thinking about adding some language features that
> would make explicit use of malloc less necessary, so
> you wouldn't usually need declarations for them.
> 
> I might consider providing some files that you can
> include for other commonly used stdio routines.

+1. I have wrapped these functions many times. Also, the cpython API
might be a good candidate.

Simon.



More information about the Pyrex mailing list