e468d5f081
These changes make the Hy REPL more closely follow `code.InteractiveConsole`'s class interface and provide minimally intrusive traceback print-out filtering via a context manager that temporarily alters `sys.excepthook`. In other words, exception messages from the REPL will no longer show Hy internal code (e.g. importer, compiler and parsing functions). The boolean variable `hy.errors._hy_filter_internal_errors` dynamically enables/disables trace filtering, and the env variable `HY_FILTER_INTERNAL_ERRORS` can be used as the initial value. |
||
---|---|---|
.. | ||
compilers | ||
importer | ||
macros | ||
native_tests | ||
resources | ||
__init__.py | ||
test_bin.py | ||
test_hy2py.py | ||
test_lex.py | ||
test_models.py |