Message339430
> 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. |
|
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 | |
|