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 steve.dower
Recipients paul.moore, sparrowt, steve.dower, tim.golden, zach.ware
Date 2022-01-20.13:07:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642684033.71.0.460384592185.issue46434@roundup.psfhosted.org>
In-reply-to
Content
See https://github.com/python/cpython/blob/b04dfbbe4bd7071d46c8688c2263726ea31d33cd/PC/layout/main.py#L256-L289

Basically, the .pyc files in the embeddable distro have been compiled with optimize=2, which is the equivalent of -OO. So yes, docstrings (and asserts) are expected to have been removed.

It shouldn't be removing docstrings from other modules that you provide yourself.
History
Date User Action Args
2022-01-20 13:07:13steve.dowersetrecipients: + steve.dower, paul.moore, tim.golden, zach.ware, sparrowt
2022-01-20 13:07:13steve.dowersetmessageid: <1642684033.71.0.460384592185.issue46434@roundup.psfhosted.org>
2022-01-20 13:07:13steve.dowerlinkissue46434 messages
2022-01-20 13:07:13steve.dowercreate