[Numpy-discussion] numpy CAPI questions
Mon Oct 20 16:22:07 CDT 2008
On Mon, Oct 20, 2008 at 16:13, Lane Brooks <email@example.com> wrote:
> Thanks for all this valuable feedback. I read your blog post and like the
> idea but not the overhead. I guess my initial approach of doing a memory
> handoff to the numpy Array was a bit naive. It seems to be working, but I
> guess that is because numpy uses free to deallocate memory?
It uses PyMem_Free() (except for a few places that I've just noticed)
which itself uses free() *except* if Python is compiled with
-DPYMALLOC_DEBUG, in which case it uses its own debugging
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the Numpy-discussion