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 serhiy.storchaka
Recipients rhettinger, serhiy.storchaka
Date 2019-04-04.03:37:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1554349020.61.0.202538454963.issue36521@roundup.psfhosted.org>
In-reply-to
Content
co_consts[0] is used for setting the initial value of __doc__. See PyFunction_NewWithQualName().

    consts = ((PyCodeObject *)code)->co_consts;
    if (PyTuple_Size(consts) >= 1) {
        doc = PyTuple_GetItem(consts, 0);
        if (!PyUnicode_Check(doc))
            doc = Py_None;
    }
    else
        doc = Py_None;
    Py_INCREF(doc);
    op->func_doc = doc;
History
Date User Action Args
2019-04-04 03:37:00serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger
2019-04-04 03:37:00serhiy.storchakasetmessageid: <1554349020.61.0.202538454963.issue36521@roundup.psfhosted.org>
2019-04-04 03:37:00serhiy.storchakalinkissue36521 messages
2019-04-04 03:37:00serhiy.storchakacreate