Message339427
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; |
|
Date |
User |
Action |
Args |
2019-04-04 03:37:00 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger |
2019-04-04 03:37:00 | serhiy.storchaka | set | messageid: <1554349020.61.0.202538454963.issue36521@roundup.psfhosted.org> |
2019-04-04 03:37:00 | serhiy.storchaka | link | issue36521 messages |
2019-04-04 03:37:00 | serhiy.storchaka | create | |
|