Message290049
3rd round of the API:
static PyObject *assertion_error = NULL;
...
if (_PY_ONCEVAR_INIT(assertion_error,
PyUnicode_InternFromString("AssertionError"))) {
return 0;
}
...
(Not the best example, _Py_IDENTIFIER() would be more appropriate here ;-))
--
I just added a second commit to remove the next field from _Py_Identifier and reuse _PyOnceVar_Set() in _PyUnicode_FromId(). |
|
Date |
User |
Action |
Args |
2017-03-23 14:51:11 | vstinner | set | recipients:
+ vstinner, ncoghlan, eric.snow, serhiy.storchaka |
2017-03-23 14:51:11 | vstinner | set | messageid: <1490280671.25.0.454529433701.issue29881@psf.upfronthosting.co.za> |
2017-03-23 14:51:11 | vstinner | link | issue29881 messages |
2017-03-23 14:51:11 | vstinner | create | |
|