__del__ is not called after creating a new reference

Oleg Nesterov oleg at redhat.com
Tue Mar 21 14:33:20 EDT 2017


On 03/21, Steve D'Aprano wrote:
>
> I changed the code to run:
>
> c = C()
> del c
>
> and now I'm seeing the same thing as you: DEL is only printed once.

Yes, I've forwared this question to python-dev, please see
https://mail.python.org/pipermail/python-dev/2017-March/147631.html

so the implementation is fine, the docs should be probably updated.

Oleg.




More information about the Python-list mailing list