4 ms·
help() is great, but my favorite tool for getting quick info about an object from the Python REPL is still wat. Just `pip install wat` and then if you need inf
by viccis 2y ago
help() is great, but my favorite tool for getting quick info about an object from the Python REPL is still wat.
Just `pip install wat` and then if you need info about some object o, do `wat / o`. If you want full docstrings, do `wat.long / o`
It's a lifesaver when you're using a poorly documented package.
- kstrauser 2y agoDear god: https://github.com/igrek51/wat?tab=readme-ov-file#load-from-unicode-glyph https://github.com/igrek51/wat?tab=readme-ov-file#load-from-...
- extraduder_ire 2y agoI always think of python as a more readable version of perl. I first got that impression from the "import this" statement. That load from glyph snippet aligns with my understanding.
- kstrauser 2y agoFor the record, this is not what I would consider idiomatic Python.