Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
hy-0.27.0.tar.gz | 2023-07-06 | 100.9 kB | |
0.27.0 source code.tar.gz | 2023-07-06 | 436.6 kB | |
0.27.0 source code.zip | 2023-07-06 | 481.8 kB | |
README.md | 2023-07-06 | 1.8 kB | |
Totals: 4 Items | 1.0 MB | 0 |
Removals
- Python 3.7 is no longer supported.
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 namedfoo
, say#* foo
. - The names of reader macros names are no longer mangled.
- Question marks (
?
) are no longer mangled specially, sofoo?
now mangles tohyx_fooXquestion_markX
instead ofis_foo
. 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 inhy.pyops
.- The
py
macro now implicitly parenthesizes the input code, so Python's indentation restrictions don't apply. try
no longer requiresexcept
,except*
, orfinally
, and it allowselse
even withoutexcept
orexcept*
.nonlocal
andglobal
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 withhy -m
, as well ashy2py
's recursive mode.hy.models.Symbol
no longer allows constructing a symbol beginning with#
.