[issue23189] Set docstrings to empty string when optimizing with -OO.

2015-01-12 Thread Jarle Selvåg
Jarle Selvåg added the comment: I agree that -OO does what (people have agreed) it's supposed to do. Many packages manipulates the docstring without checking for 'None' (see list below). For many package developers, it seems hard to remember that the docstrings may

[issue23189] Set docstrings to empty string when optimizing with -OO.

2015-01-08 Thread Jarle Selvåg
Jarle Selvåg added the comment: This issue is only relevant for classes that have this construct: class MyClass(object): __doc__ += '''Some more text''' -- ___ Python tracker <

[issue23189] Set docstrings to empty string when optimizing with -OO.

2015-01-08 Thread Jarle Selvåg
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 'N