New submission from Jarle Selvåg:
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.
----------
components: Interpreter Core
messages: 233634
nosy: jvs
priority: normal
severity: normal
status: open
title: Set docstrings to empty string when optimizing with -OO.
type: enhancement
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue23189>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com