Hi, On Thu, 2 Jan 2020 at 03:59, Yonatan Zunger <zun...@humu.com> wrote: > It is possible (though not recommended!) for the __del__() method to postpone > destruction of the instance by creating a new reference to it. This is called > object resurrection. It is implementation-dependent whether __del__() is > called a second time when a resurrected object is about to be destroyed; the > current CPython implementation only calls it once.
"...in most cases." Armin Rigo _______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/LHY2EM7PMSSUAMORBOHIUZAYKHILAMJO/ Code of Conduct: http://python.org/psf/codeofconduct/