Message339427
| 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: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 | |