1.3.1 ("Eyes in the Sky")2026-07-31
Supports Python 3.9 – Python 3.15
Bug Fixes
------------------------------
* Fixed a regression in Hy 1.3.0 that could prevent imports of Python code in ZIP archives.
* Calls to None such as ((setv x 1) 2) are now correctly compiled (they're still a runtime error, as they ought to be).
Misc. Improvements
------------------------------
* Fake filenames shown for errors in the REPL are now shorter.
1.3.0 ("Dogs Should Be Raw")2026-05-24
Supports Python 3.9 – Python 3.15
New Features
------------------------------
* Added t-strings, and a pragma bracketed-templates.
* Unpacking is now supported in comprehensions (PEP 798), even on Pythons < 3.15.
* (import :lazy …) is allowed on Pythons ≥ 3.15 (PEP 810).
* Added hy-reprs for Template, Interpolation, and frozendict.
* hyc has a new command-line option --quiet.
Bug Fixes
------------------------------
* Invalid conversion characters in f-strings now properly raise a syntax error.
* Variables set by (except …) are now properly scoped.
* Fixed a crash when using require in hy.eval.
* Fixed some compilation failures for asynchronous comprehension forms.
Fixed the error message for using except on Pythons < 3.11.
* More model types (String, Bytes, Symbol, Integer, Float, Complex) now work properly with match.
Fixed a bug that could cause pycompile.compile to read Hy as Python.
* Fixed bugs in hy.model-patterns.whole (and other combinators that use it, like brackets) in which tuples were not always produced.
1.2.0 ("Crackers and Snacks")2026-01-14
Supports Python 3.9 – Python 3.14
New Features
------------------------------
- setv now supports chained assignment with :chain.
- Several functions in the standard inspect module have been monkey-patched to work better with Hy code: findsource, getcomments, getfile, getsource, getsourcelines.
- As a result, the ll command in pdb should now show a more useful result in more cases.
1.1.0 ("Business Hugs")2025-05-08
Supports Python 3.9 – Python 3.14
New Features
------------------------------
* New pragma hy.
Misc. Improvements
------------------------------
* Added compatibility with setuptools 80.3.0.
Bug Fixes
------------------------------
* Fixed a crash from using an empty string in a (. …) expression.
* (except [[]] …) now catches no exceptions, rather than being treated like (except [] …), which catches all exceptions.
* (except [e []] …) is now translated to Python correctly by hy2py.
* Fixed a bug where logical ops starting with a (setv …) expression failed to compile.
* A complex imag argument to hy.models.Complex is no longer allowed.
1.0.0 ("Afternoon Review")2024-09-22
Supports Python 3.8 – Python 3.13
See also the announcement post for this release.
Bug Fixes
------------------------------
* Fixed a crash on Python 3.12.6.
* Keyword objects can now be compared to each other with < etc.
* The order of evaluation in multi-item withs now matches that of nested one-item withs.
* Fixed a bug in which the REPL misinterpreted the symbol pass.
0.29.02024-05-20
Removals
------------------------------
* hy.disassemble has been removed.
* (defn/a …) is now (defn :async …).
* (fn/a …) is now (fn :async …).
* (with/a […] …) is now (with [:async …] …).
* As with for, :async must precede each name to be bound asynchronously, because you can mix synchronous and asynchronous types.
* (yield-from …) is now (yield :from …).
New Features
------------------------------
* You can now set repl-ps1 and repl-ps2 in your HYSTARTUP to customize sys.ps1 and sys.ps2 for the Hy REPL.
Bug Fixes
------------------------------
* Tracebacks now point to the correct code in more cases.
* help should no longer crash when objects are missing docstrings.
* hy -i < script.hy now executes script.hy inside the REPL environment, like Python.
0.28.02024-01-05
Removals
------------------------------
* doc has been removed. Use (help (get-macro foo)) or (help (get-macro :reader foo)) instead.
delmacro has been removed. Use (eval-when-compile (del (get hy_macros (hy.mangle "foo")))) instead.
hy.reserved has been removed. Use (.keys (builtins.hy_macros)) or Python's built-in keyword module instead.
The environment variables HYDEBUG and HYFILTERINTERNALERRORS have been replaced with HYSHOWINTERNALERRORS.
Other Breaking Changes
------------------------------
* defmacro and require can now define macros locally instead of only module-wide.
* When a macro is require\d from another module, that module is no longer implicitly included when checking for further macros in the expansion.
* hy.M has been renamed to hy.I.
* hy.eval has been overhauled to be more like Python's eval. It also has a new parameter macros.
* hy.macroexpand and hy.macroexpand-1 have been overhauled and generalized to include more of the features of hy.eval.
* hy now only implicitly launches a REPL if standard input is a TTY.
* hy -i has been overhauled to work as a flag like python3 -i.
* hy2py now requires -m to specify modules, and uses the same sys.path rules as Python when parsing a module vs a standalone script.
* New macro deftype.
* New macro get-macro.
* New macro local-macros.
New Features
------------------------------
* New syntax (hy.R.aaa/bbb.m …) for calling the macro m from the module aaa.bbb without bringing m or aaa.bbb into scope.
* nonlocal now also works for globally defined names.
* defn, defn/a, and defclass now support type parameters.
* HyReader now has an optional parameter to install existing reader macros from the calling module.
* New pragma warn-on-core-shadow.
Misc. Improvements
------------------------------
* Some syntax errors raised by core macros now have more informative messages.
* Logical operators now compile to simpler Python code in some cases.
Bug Fixes
------------------------------
* Implicit returns are now disabled in async generators.
* Fixed parsing of infinite and NaN imaginary literals with an uppercase "J".
* Double quotes inside of bracketed f-strings are now properly handled.
* Fixed incomplete recognition of macro calls with a unary dotted head like ((. defn) f []).
~@ # now produces a syntax error instead of a nonsensical result.
* nonlocal now works for top-level let-bound names.
* require now warns when you shadow a core macro, like defmacro already did.
* Fixed hy.eval failing on defreader or require forms that install a new reader.
* The parameter result-ok that was mistakenly included in the signature of hy.macroexpand is now gone.
* hy -i with a filename now skips shebang lines.
0.27.02023-07-06
Removals
------------------------------
* Python 3.7 is no longer supported.
Other Breaking Changes
------------------------------
Reader macros now always read a full identifier after the initial #. Thus, #foo is now parsed as a call to the reader macro named foo; to unpack a variable named foo, say # foo.
* The names of reader macros names are no longer mangled.
Question marks (?) are no longer mangled specially, so foo? now mangles to hyxfooXquestionmarkX instead of isfoo.
* hy2py's recursive mode now expects a module name as input, not any old directory. You must be in the parent directory of the module directory.
New Features
------------------------------
* Python 3.12 is now supported.
* New built-in object hy.M for easy imports in macros.
* cut now has a function version in hy.pyops.
* The py macro now implicitly parenthesizes the input code, so Python's indentation restrictions don't apply.
try no longer requires except, except, or finally, and it allows else even without except or except*.
* nonlocal and global can now be called with no arguments, in which case they're no-ops.
* For easier reading, hy --spy now prints a delimiter after the Python equivalent of your code, before the result of evaluating the code.
Bug Fixes
------------------------------
* Fixed an installation failure in some situations when version lookup fails.
* Fixed some bugs with traceback pointing.
* Fixed some bugs with escaping in bracket f-strings
* The parser no longer looks for shebangs in the REPL or hy -c.
* require with relative module names should now work correctly with hy -m, as well as hy2py's recursive mode.
* hy.models.Symbol no longer allows constructing a symbol beginning with #.
0.26.02023-02-08
Removals
------------------------------
* Coloring error messages and Python representations for models is no longer supported. (Thus, Hy no longer depends on colorama.)
Other Breaking Changes
------------------------------
* Various warts have been smoothed over in the syntax of ', \, ~, and ~@:
* Whitespace is now allowed after these syntactic elements. Thus one can apply ~ to a symbol whose name begins with "@".
* \ and ~ are no longer allowed in identifiers. (This was already the case for '.)
* The bitwise NOT operator ~ has been renamed to bnot.
* Dotted identifiers like foo.bar and .sqrt now parse as expressions (like (. foo bar) and (. None sqrt)) instead of symbols. Some odd cases like foo. and foo..bar are now syntactically illegal.
* New macro do-mac.
* New macro pragma (although it doesn't do anything useful yet).
* hy.cmdline.HyREPL is now hy.REPL.
* Redundant scripts named hy3, hyc3, and hy2py3 are no longer installed. Use hy, hyc, and hy2py instead.
New Features
------------------------------
* Pyodide is now officially supported.
* ., .., etc. are now usable as ordinary symbols (with the remaining special rule that ... compiles to Ellipsis).
On Pythons ≥ 3.7, Hy modules can now be imported from ZIP archives in the same way as Python modules, via zipimport.
* hy2py has a new command-line option --output.
* hy2py can now operate recursively on a directory.
Bug Fixes
------------------------------
* hy.REPL now restores the global values it changes (such as sys.ps1) after hy.REPL.run terminates.
* hy.REPL no longer mixes up Hy's and Python's Readline histories when run inside Python's REPL.
* Fixed hy.repr of non-compilable uses of sugared macros, such as (quote) and (quote 1 2).
0.25.02022-11-08
Breaking Changes
------------------------------
dfor no longer requires brackets around its final arguments, so (dfor x (range 5) [x ( 2 x)]) is now (dfor x (range 5) x (* 2 x)).
except (PEP 654) is now recognized in try, and a placeholder macro for except* has been added.
New Features
------------------------------
* Python 3.11 is now supported.
Bug Fixes
------------------------------
file__ should now be set the same way as in Python.
* \N{…} escape sequences are now recognized in f-strings.
* Fixed a bug with python -O where assertions were still partly evaluated.
* Fixed hy.repr of slice objects with non-integer arguments.
Misc. Improvements
------------------------------
* hyc now requires a command-line argument.
* hyc prints each path it writes bytecode to, and its messages now go to standard error instead of standard output.