Daniele Varrazzo added the comment:
The attached file shows the issue: running with -OO no docstring should
be printed.
In rev 58163 the functions docstrings are still printed.
__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1169>
__________________________________
"""Module docstring"""
class Test:
"""Class docstring"""
def test(self):
"""Method docstring."""
pass
def fun():
"""Function docstring."""
pass
print 'module', __doc__
print 'class', Test.__doc__
print 'method', Test.test.__doc__
print 'fun', fun.__doc__
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com