On Thu, 12 Dec 2019 11:33:25 +0000
Rhodri James <rho...@kynesim.co.uk> wrote:

> On 11/12/2019 21:32, mus...@posteo.org wrote:
> > Plain and simple: When the refcount reaches zero.  

> You are assuming that "when" implies "immediately on the occurence."

I'm not implying that. It's the dictionary definition of the word
"when."

> This happens to be the behaviour in CPython, but other 
> implementations vary as Chris has explained several times now.

And he's right. The documentation is unclear. It should be re-worded to
reflect that the point at which the __del__() method is called after
the refcount reaches zero is unspecified. 
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to