Message233634
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. |
|
Date |
User |
Action |
Args |
2015-01-08 09:41:45 | jvs | set | recipients:
+ jvs |
2015-01-08 09:41:45 | jvs | set | messageid: <1420710105.42.0.0455822244895.issue23189@psf.upfronthosting.co.za> |
2015-01-08 09:41:45 | jvs | link | issue23189 messages |
2015-01-08 09:41:44 | jvs | create | |
|