A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-February/002081.html below:

[Python-Dev] Naming rules for function types

[Python-Dev] Naming rules for function types [Python-Dev] Naming rules for function typesM.-A. Lemburg mal@lemburg.com
Sat, 05 Feb 2000 12:10:46 +0100
Moshe Zadka wrote:
> 
> 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?

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/





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