Hi Armin,
On 25.08.2015 12:51, Armin Rigo wrote:
Hi Valentine,
On 24 August 2015 at 20:43, Valentine Sinitsyn
<valentine.sinit...@gmail.com> wrote:
So you mean that this was to keep things backwards compatible for
third-party extensions? I haven't thought about it this way, but this makes
sense. However, the behavior of Python code using objects with __del__ has
changed nevertheless: they are collectible now, and __del__ is always called
exactly once, if I understand everything correctly.
Yes, I think so. There is a *highly obscure* corner case: __del__
will still be called several times if you declare your class with
"__slots__=()".
Even on "post-PEP-0442" Python 3.4+? Could you share a link please?
Thanks,
Valentine
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com