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 jvs
Recipients jvs
Date 2015-01-08.09:41:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1420710105.42.0.0455822244895.issue23189@psf.upfronthosting.co.za>
In-reply-to
Content
Python code byte-compiled with -OO has doc-strings stripped out. 

This creates problems when compiling different packages which changes the doc-strings by doing something like this:
     __doc__ += "additional text"
(when the docstring is 'None', this will fail).

The packages "lmfit 0.8.1" and "Patsy 0.3.0" have this problem, and must be patched before compilation.

See related discussion on Stackoverflow:
http://stackoverflow.com/questions/22299532/unsupported-operand-types-for-nonetype-and-str-winappdbg-error-after-c

Proposal: Set the doc-strings to empty string ("") instead of removing them completely during optimization with -OO. The memory footprint would anyway be the same.
History
Date User Action Args
2015-01-08 09:41:45jvssetrecipients: + jvs
2015-01-08 09:41:45jvssetmessageid: <1420710105.42.0.0455822244895.issue23189@psf.upfronthosting.co.za>
2015-01-08 09:41:45jvslinkissue23189 messages
2015-01-08 09:41:44jvscreate