Hi Yuriy,

On 8 April 2015 at 10:47, Yuriy Taraday <yorik....@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
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to