A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2003-April/034502.html below:

[Python-Dev] Re: tp_clear return value

[Python-Dev] Re: tp_clear return value [Python-Dev] Re: tp_clear return valueMartin v. Löwis martin@v.loewis.de
11 Apr 2003 07:08:56 +0200
Tim Peters <tim.one@comcast.net> writes:

> So I'm unclear on what we're trying to optimize when a tp_clear nukes less
> than the corresponding tp_traverse visits.  I suppose "code space" is one
> decent answer to that.

In the case of type objects, it's not a matter of optimization but of
correctness. If you were clearing all slots of a type object, you'd
lose state that is still needed later on; see the comment for
typeobject.c:2.150.

Regards,
Martin




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