Reputation: 131
I want to assign a help()
page to a variable as a string; for example
a = help("class")
print a
Is this possible and how would I go about doing it?
Upvotes: 1
Views: 122
Reputation: 3393
You can retrive the documentation directly.
from pydoc_data import topics
a = topics.topics['class']
print a
Upvotes: 7