[Python-Dev] New poll about a macro for safe reference replacing
Martin Panter
vadmium+py at gmail.com
Wed Dec 16 22:29:16 EST 2015
On 16/12/2015, Serhiy Storchaka <storchaka at gmail.com> wrote:
> Here are names gained the largest numbers of votes plus names proposed
> during polling.
>
> 1. Py_SETREF
+0. I can live with it, but SET sounds like a complement to CLEAR, or
that it ignores the old value.
> 2. Py_DECREF_REPLACE
+0.5
> 3. Py_REPLACE
+1. Fairly obvious what it does.
> 4. Py_SET_POINTER
-1
> 5. Py_SET_ATTR
-1 ** -1. What’s the attribute name?
> 6. Py_REPLACE_REF
+0.5
Ryan’s Py_RESET: -1, it sounds too much like CLEAR
More information about the Python-Dev
mailing list