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 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:14rhettingersetrecipients: + rhettinger, serhiy.storchaka
2019-04-04 03:47:14rhettingersetmessageid: <1554349634.72.0.835422244929.issue36521@roundup.psfhosted.org>
2019-04-04 03:47:14rhettingerlinkissue36521 messages
2019-04-04 03:47:14rhettingercreate