A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2015-August/141333.html below:

[Python-Dev] tp_finalize vs tp_del sematics

[Python-Dev] tp_finalize vs tp_del sematics [Python-Dev] tp_finalize vs tp_del sematicsArmin Rigo arigo at tunes.org
Tue Aug 25 09:51:31 CEST 2015
Hi Valentine,

On 24 August 2015 at 20:43, Valentine Sinitsyn
<valentine.sinitsyn at 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__=()".


A bientôt,

Armin.
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4