[Python-Dev] Memory management in the AST parser & compiler

Neil Schemenauer nas at arctrix.com
Fri Nov 18 18:28:03 CET 2005


Fredrik Lundh <fredrik at pythonware.com> wrote:
> Thomas Lee wrote:
>
>> Even if it meant we had just one function call - one, safe function call
>> that deallocated all the memory allocated within a function - that we
>> had to put before each and every return, that's better than what we
>> have.
>
> alloca?

Perhaps we should use the memory management technique that the rest
of Python uses: reference counting.  I don't see why the AST
structures couldn't be PyObjects.

  Neil



More information about the Python-Dev mailing list