2 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. I mean th
by ur-whale 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.
I mean the number of times I've bumped on json not being able to dump the content of an object is just infuriating given how flexible Python is.
I'm definitely giving this a whirl.
- 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?