Commit Graph

15 Commits

Author SHA1 Message Date
Brandon T. Willard e468d5f081 Refactor REPL error handling and filter Hy internal trace output
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.
2019-02-07 13:43:58 -05:00
Tuukka Turto 5b2d823028 Add --repl-output-fn into command line docs 2017-04-01 08:10:45 +03:00
Jakukyo Friel d81b71f242 Doc: CLI: mention `--spy` only works in REPL mode. (#1097) 2016-09-22 15:20:26 +03:00
Berker Peksag 685688f04c Update versionadded directives.
0.11.0 is a backwards incompatible release.
2015-05-09 22:12:04 +03:00
Kevin Yap 8c0ac0862f Adhere to CPython's documentation guidelines
- Inline code is written using ``double backticks``
- Italicized text uses *asterisks* rather than `single backticks`
- Function parameters are italicized rather than written as inline code
2014-12-07 02:09:43 -08:00
Kevin Yap 997501bcc4 Fixes to language documentation
- Use backticks consistently for inline code
- Capitalize section headers and proper nouns
- Minor grammatical fixes
2014-12-06 15:46:44 -08:00
Bob Tolbert 05574f6ad7 Implement -m command line flag to run a module by name 2014-11-26 09:13:45 -07:00
Berker Peksag cdea12b276 Make hy2py public. 2014-04-30 01:51:21 +03:00
Bob Tolbert 4798863e0f This change updates the required Pygments version to 1.6, which
supports Hy code.

All code-blocks in the documentation have been changed from
clojure to hy.

Also added docs/make.bat for Windows, so the top-level docs
target now works on Windows as well.
2014-03-14 09:01:47 -04:00
Berker Peksag 65f8bd2b91 Document hyc command line options. 2014-01-25 21:43:08 +02:00
Jack Hooper ca40113e37 Corrected --spy cmdoption (I think)
For the --spy commmand line option, it currently says '''Print equivalent Hy code...'''. Now, I haven't actually gotten around to installing Hy on my computer yet, so I haven't had a chance to test this out to make sure, but from the looks of the code example, it looks as though it is printing out the equivalent Python code of the executed Hy code, not the other way around. This would certainly make more sense. As such, I have changed the word 'Hy' to 'Python' so that the documentation more accurately reflects what (one assumes) is going on.
2014-01-20 14:29:57 +11:00
Bob Tolbert 05899423df Changing --show_tracebacks to --show-tracebacks 2013-12-31 09:56:03 -07:00
Bob Tolbert 5040c29946 Cleaning up some comments from berker 2013-12-31 09:56:03 -07:00
Berker Peksag ecd13ef659 Add versionadded directive to cli.rst. 2013-12-06 07:51:32 +02:00
Berker Peksag 2c76d8ec90 Document command line options. 2013-12-05 22:03:05 +05:30