Antoine Pitrou added the comment:

> It makes sure that you get a single object in memory for the same integer, 
> and not only for Python "small integer singletons"?

Yes.

> About the -1000..1000 range: if a function leaks more than 1 memory block or 
> more than 1 reference, there is already something wrong no?

Well, the current code can still hide it, for example if a function leaks 
[1000, 0, 1000, 1000, 1000] references, the code says it's ok.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue31217>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to