3 ms·
https://hylang.org/hy/doc/v1.0.0/repl https://hylang.org/hy/doc/v1.0.0/repl >A convenient way to use this class to interactively debug code is to insert the fo
by ruined 2y ago
https://hylang.org/hy/doc/v1.0.0/repl https://hylang.org/hy/doc/v1.0.0/repl
>A convenient way to use this class to interactively debug code is to insert the following in the code you want to debug:
(.run (hy.REPL :locals {#\* (globals) #\* (locals)}))
>Or in Python:
import hy; hy.REPL(locals = {\*globals(), \*locals()}).run()
>Note that as with `code.interact()`, changes to local variables inside the REPL are not propagated back to the original scope.