STINNER Victor added the comment: 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(). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29881> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com