[Python-Dev] PySet API
"Martin v. Löwis"
martin at v.loewis.de
Tue Mar 28 08:10:35 CEST 2006
More information about the Python-Dev mailing list
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 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
- Previous message: [Python-Dev] PySet API
- Next message: [Python-Dev] PySet API
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list