[Pyrex] Low level operations

Robin Becker robin at reportlab.com
Wed Jun 25 10:15:50 CEST 2003


I have a large legacy code for econometric model solving that I would
like to bring into the 21'st century.

It makes large use of double, unsigned short, unsigned byte arrays which
are all dynamically allocated.

How should I allocate/deallocate memory for these arrays? It seems that
Python may not be using the 'standard' malloc/free under some
circumstances. Does Python export its low level allocation stuff?

How should I read such a structure from disk? Should I use python or c
methods?
-- 
Robin Becker




More information about the Pyrex mailing list