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

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Nov 29 00:55:17 CET 2005

Jeremy Hylton wrote:

> Almost every line of
> code can lead to an error exit.  The code becomes quite cluttered when
> it uses reference counting.

I don't see why very many more error exits should become
possible just by introducing refcounting. Errors are possible
whenever you allocate something, however you do it, so you
need error checks on all your allocations in any case.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg.ewing at canterbury.ac.nz	   +--------------------------------------+

More information about the Python-Dev mailing list