This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients eric.snow, ncoghlan, serhiy.storchaka, vstinner
Date 2017-03-23.14:51:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1490280671.25.0.454529433701.issue29881@psf.upfronthosting.co.za>
In-reply-to
Content
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().
History
Date User Action Args
2017-03-23 14:51:11vstinnersetrecipients: + vstinner, ncoghlan, eric.snow, serhiy.storchaka
2017-03-23 14:51:11vstinnersetmessageid: <1490280671.25.0.454529433701.issue29881@psf.upfronthosting.co.za>
2017-03-23 14:51:11vstinnerlinkissue29881 messages
2017-03-23 14:51:11vstinnercreate