basilisp.repl¶
REPL utilities for inspecting docstrings and source code of Basilisp and Python objects.
- macro (doc v)[source]¶
Print the docstring from an interned Var if found.
v
must be a symbol which resolves to a Var.
- fn (mark-exception e)[source]¶
Set the variable
basilisp.core/*e
to the last exception at the REPL.
- fn (mark-repl-result result)[source]¶
Mark the REPL result and move each result to the next slot down.
- fn (print-doc v)[source]¶
Print the docstring from an object.
If the object is a Basilisp Var, print the
:doc
metadata. Otherwise, print the docstring as byinspect.getdoc()
.
- fn (print-source o)[source]¶
Print the source forms for a function.
If the object is a Basilisp Var, print the Lisp source code. Otherwise, print the Python source code as by
inspect.getsource()
.