Printing docstrings in Python 3
-
31-10-2019 - |
Question
How do you print doc strings in python 3.1.x?
I tried with the re and sys modules as a test and I keep getting errors. Thanks
import re
print(re._doc_)
Traceback (most recent call last):
File "<pyshell#91>", line 1, in <module>
print(re._doc_)
AttributeError: 'module' object has no attribute '_doc_'
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow