[pypy-dev] FAQ entry
Armin Rigo
arigo at tunes.org
Wed Apr 8 11:02:09 CEST 2015
Hi Yuriy,
On 8 April 2015 at 10:47, Yuriy Taraday <yorik.sar at gmail.com> wrote:
> will end up executing them. So my argument is: why not make it clear that
> __del__ will run in a separate thread instead of trying to pretend that it's
> something more predictable than that?
For example, because it would break this class (it's left as an
exercise to the reader to understand why):
class Foo(object):
num_instances = 0
def __init__(self):
Foo.num_instances += 1
def __del__(self):
Foo.num_instances -= 1
Armin
More information about the pypy-dev
mailing list