[Python-Dev] PySet API (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Tue Mar 28 08:10:35 CEST 2006
- Previous message: [Python-Dev] PySet API
- Next message: [Python-Dev] PySet API
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Greg Ewing wrote:
Hmmm, the problem here, I think, is that tpclear 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 PyObjectClear 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
- Previous message: [Python-Dev] PySet API
- Next message: [Python-Dev] PySet API
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]