Naming rules for function types

In Include/object.h, around line 140, many pointer to functions are typedef'ed. I need a new function type: int (*f)(PyObject *, PyObject *) And I'm at a bit of a los what to call it. Anyone has any idea what the naming convention is? Is objobjproc the right thing? Thanks for your attention. -- Moshe Zadka <mzadka@geocities.com>. INTERNET: Learn what you know. Share what you don't.

Moshe Zadka wrote:
I'd suggest creating a new type which is related to your particular need rather than coming up with a new generic name. The generic names bypass type safety. Since you probably want this for the __contains__ slot, how about "containsfunc" ? -- Marc-Andre Lemburg ______________________________________________________________________ Business: http://www.lemburg.com/ Python Pages: http://www.lemburg.com/python/

Moshe Zadka wrote:
I'd suggest creating a new type which is related to your particular need rather than coming up with a new generic name. The generic names bypass type safety. Since you probably want this for the __contains__ slot, how about "containsfunc" ? -- Marc-Andre Lemburg ______________________________________________________________________ Business: http://www.lemburg.com/ Python Pages: http://www.lemburg.com/python/
participants (2)
-
M.-A. Lemburg
-
Moshe Zadka