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/2006-March/062902.html below:

[Python-Dev] PySet API

[Python-Dev] PySet API [Python-Dev] PySet API"Martin v. Löwis" martin at v.loewis.de
Tue Mar 28 08:10:35 CEST 2006
Greg Ewing wrote:
> Hmmm, the problem here, I think, is that tp_clear is
> really only designed for use by the garbage collector.
> Giving anything else access to it is probably wrong.
> 
> Clearability is not a general feature in Python land --
> a few types have a clear() method, but this is an
> ad hoc feature of the type concerned. I don't think
> it makes sense to have a general PyObject_Clear
> function at all.

I agree. Barry's PySet_Clear and Raymond's PyObject_Clear
would be two completely unrelated functions (one invoking
the "clear" method, the other invoking tp_clear).

Regards,
Martin
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