[Python-Dev] Memory management in the AST parser & compiler
"Martin v. Löwis"
martin at v.loewis.de
Tue Nov 29 08:33:03 CET 2005
Neal Norwitz wrote:
> For those watching, Greg's and Martin's version were almost the same.
> However, Greg's version left in the memory leak, while Martin fixed it
> by letting the result fall through.
Actually, Greg said (correctly) that his version also fixes the
leak: he assumed that FunctionDef would *consume* the references
being passed (whether it is successful or not).
I don't think this is a good convention, though.
More information about the Python-Dev