Message291542
I dislike _Py_SET_FINALIZED and _Py_SET_ONCE name.
I prefer to mention an "initialization" because it's a common pattern in programming and it is known that it only requires to be done once.
_PY_ONCEVAR_INIT() macro is unusual: it only evaluate the second parameter parameter, a C expression, if the variable is not initialized yet.
Py_SETREF() is different because it always evaluates its second argument, and in most cases, the second argument is an existing variable and not an expression. |
|
Date |
User |
Action |
Args |
2017-04-12 10:10:17 | vstinner | set | recipients:
+ vstinner, ncoghlan, eric.snow, serhiy.storchaka, louielu |
2017-04-12 10:10:17 | vstinner | set | messageid: <1491991817.23.0.0672526348149.issue29881@psf.upfronthosting.co.za> |
2017-04-12 10:10:17 | vstinner | link | issue29881 messages |
2017-04-12 10:10:17 | vstinner | create | |
|