3 ms·
>Given the natural built-in introspection capabilities of the language, I never understood why something like that wasn't also a built-in part Python. Somthing
by fuzztester 2y ago
>Given the natural built-in introspection capabilities of the language, I never understood why something like that wasn't also a built-in part Python.
Somthing like that does exist, and has, from Python 2.x; the inspect module, apart from help() and dir():
It is somewhat lower-level than wat, which builds upon it. But it is powerful.
https://news.ycombinator.com/item?id=41072878 https://news.ycombinator.com/item?id=41072878
Or did you mean the inspect module itself?