News for hackers. Stuff that matters.
Re:Show HN: Wat – Deep inspection of Python objects by igrek51 on Thursday July 25, 2024 @06:11PM (#41073921)
You're completely right. `dir()` does the same in terms of functionality. In fact, my tool makes use of `dir` under the hood. I just wanted to make it more readable, and to combine `dir`, `type`, `repr`, `len`, `inspect`, etc. into one easily accessible place.
Re:Show HN: Wat – Deep inspection of Python objects by fuzztester on Friday July 26, 2024 @12:59AM (#41075880)
even just

  print(name.__doc__)
works for many kinds of names in Python.