Pull requests

#25 Merged
Repository
jonovik jonovik
Branch
default
Repository
birkenfeld birkenfeld
Branch
default

Inheritance diagram: Make tooltip from first line of docstring

Author
  1. Jon Olav Vik
Reviewers
Description
No description
  • Learn about pull requests

Comments (2)

  1. Georg Brandl repo owner

    In principle, I think this is a good idea.

    However, this imports the class once again: wouldn't it be possible to extract the docstring the first time the class is imported? (Also, I'd like to have a "..." appended if the docstring is cut.)

    1. Jon Olav Vik author

      I can see how it might feel cleaner to access the docstring the first time the class is imported, rather than re-import them. I've implemented this in the updated pull request. It didn't get much less complicated, though 8-)

      (Any speed gains are negligible; re-importing a module is almost free.)

      I'm not sure what you mean about "...". The first line of a docstring should make sense on its own, per http://www.python.org/dev/peps/pep-0257/.