Message339430
| Author | rhettinger |
|---|---|
| Recipients | rhettinger, serhiy.storchaka |
| Date | 2019-04-04.03:47:14 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1554349634.72.0.835422244929.issue36521@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
> co_consts[0] is used for setting the initial value of __doc__. Why is __doc__ set this way, but __name__ is set directly on the function object? Setting __doc__ from the code object seems like an odd implementation hack that puts the responsibility in the wrong place and that leaves a dangling reference when __doc__ is updated. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2019-04-04 03:47:14 | rhettinger | set | recipients: + rhettinger, serhiy.storchaka |
| 2019-04-04 03:47:14 | rhettinger | set | messageid: <1554349634.72.0.835422244929.issue36521@roundup.psfhosted.org> |
| 2019-04-04 03:47:14 | rhettinger | link | issue36521 messages |
| 2019-04-04 03:47:14 | rhettinger | create | |