2 ms·
There are a couple of ways of interpreting this question.. but to answer the literal question of why not call malloc/free direcly: See https://docs.python.org/
by fulafel 7y ago
There are a couple of ways of interpreting this question.. but to answer the literal question of why not call malloc/free direcly:
See https://docs.python.org/3/c-api/memory.html https://docs.python.org/3/c-api/memory.html - it supports custom user-supplied memory allocators, so calling malloc() and free() directly would break this.