Lurker News

Comments (92) 30 threads

Earlier comments
fuzztester1 reply#
the author is using the Python inspect module of the stdlib under the hood to provide the functionality, of course with a lot of value-add.

see inspection.py in the wat module.
it has this on line 2:
import inspect as std_inspect

nikvdp#
> If you want to quickly debug something, you can use this inspector without installing anything, in the same session.

> Load it on the fly by pasting this snippet to your Python interpreter
The idea of having a project's readme include a full copy of the project itself as base64'd compressed data is pretty ingenious!
especially for a project like this where you may not have had the foresight to preload it into the environment where you most need it

blueboo1 reply#
rich.inspect has been my go-to for this. Comes pre-installed in a vanilla Colab kernel too
ilyagr2 replies#
I wonder if there's something like this for Lua. It doesn't have Python's built-in conveniences for introspection like `help()`.
nython#
There were various internal Quality of Life modules during my time at amzn, but nothing public. I suspect that given enough time working with Lua, each team will create an ad hoc, informally-specified, bug-ridden, slow implementation of half of python.

Load more comments