[Python-ideas] cli tool to print value, similar to pydoc
Steven D'Aprano
steve at pearwood.info
Sun Apr 7 22:35:30 EDT 2019
On Sun, Apr 07, 2019 at 01:42:46PM +0200, Thomas Gläßle wrote:
> It would be nice to just type, e.g. any of:
>
> pyval os.pathsep
How will it know what object os is, without guessing, if you haven't
imported it?
> There is already a tool like this on PyPI [1] (sadly py2 only atm), but
> if you agree that this is a common pattern,
I always have at least one REPL open for precisely this sort of thing,
and the interactive interpreter is infinitely more flexible and powerful
than a tool to print one value.
--
Steven
More information about the Python-ideas
mailing list