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 implemen
On 03/17, Terry Reedy wrote:
>
> On 3/17/2017 10:54 AM, Oleg Nesterov wrote:
>> I started to learn python a few days ago and I am trying to understand what
>> __del__() actually does. https://docs.python.org/3/reference/datamodel.html
>> says:
>&g
I started to learn python a few days ago and I am trying to understand what
__del__() actually does. https://docs.python.org/3/reference/datamodel.html
says:
object.__del__(self)
...
Note that it is possible (though not recommended!) for the __del__()
method to post