Message 287283 - Python tracker (original) (raw)

def func(): "doc" + "string"

Currently (Python 2.7-3.6), func.doc is None. I suggest to add an unit test for this corner case, even if the result is going to change in a near future. We need to "specify" the expected behaviour, and make sure that we get the same result if optimizations are enabled or not.