[Python-Dev] New poll about a macro for safe reference replacing
Victor Stinner
victor.stinner at gmail.com
Wed Dec 16 16:14:12 EST 2015
2015-12-16 15:12 GMT+01:00 Serhiy Storchaka <storchaka at gmail.com>:
> Here are names gained the largest numbers of votes plus names proposed
> during polling.
>
> 1. Py_SETREF
+1: obvious name
> 2. Py_DECREF_REPLACE
-1: too long
> 3. Py_REPLACE
0: less explicit than but: not mention of reference
> 4. Py_SET_POINTER
-1: a reference is not a pointer
> 5. Py_SET_ATTR
-1: it's not an attribute
> 6. Py_REPLACE_REF
+0.5: close to Py_SETREF, but longer and if I recall correctly "set"
is more common than "replace" in the Python language
Victor
More information about the Python-Dev
mailing list