[pypy-dev] expected_extra_mallocs

Armin Rigo arigo at tunes.org
Fri Jul 20 14:50:13 CEST 2007


Hi Simon,

On Tue, Jul 17, 2007 at 08:02:53AM -0700, Simon Burton wrote:
> def func():
>     x = 1.
>     print x

It's a known non-issue: any RPython program calling the "print"
statement "leaks" exactly one malloced piece of memory.  It's not an
issue because in truth the memory is simply kept around to be reused by
the next "print".  I guess you need to expect one extra malloc in this
case.


A bientot,

Armin.



More information about the Pypy-dev mailing list