Lurker News

Comments (92) 30 threads

Earlier comments
ur-whale1 reply#
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#
>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
Or did you mean the inspect module itself?

frays#
dir(), help() and now adding wat to my toolbox to help debug!
maxmcd#
Is there something similar for Javascript?

Load more comments