Merge pull request #1742 from Kodiologist/release

Hy 0.16.0
This commit is contained in:
Kodi Arfer 2019-02-12 16:11:18 -05:00 committed by GitHub
commit ebcb374c1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
.. default-role:: code .. default-role:: code
Unreleased 0.16.0
============================== ==============================
Removals Removals
@ -9,35 +9,36 @@ Removals
New Features New Features
------------------------------ ------------------------------
* `eval` / `hy_eval` and `hy_compile` now accept an optional `compiler` argument * `eval` / `hy_eval` and `hy_compile` now accept an optional `compiler`
that enables the use of an existing `HyASTCompiler` instance. argument that enables the use of an existing `HyASTCompiler` instance.
* Keyword objects (not just literal keywords) can be called, as * Keyword objects (not just literal keywords) can be called, as
shorthand for `(get obj :key)`, and they accept a default value shorthand for `(get obj :key)`, and they accept a default value
as a second argument. as a second argument.
* Minimal macro expansion namespacing has been implemented. As a result, * Minimal macro expansion namespacing has been implemented. As a result,
external macros no longer have to `require` their own macro dependencies. external macros no longer have to `require` their own macro
dependencies.
* Macros and tags now reside in module-level `__macros__` and `__tags__` * Macros and tags now reside in module-level `__macros__` and `__tags__`
attributes. attributes.
Bug Fixes Bug Fixes
------------------------------ ------------------------------
* Cleaned up syntax and compiler errors * Cleaned up syntax and compiler errors.
* Fixed issue with empty arguments in `defmain`. * You can now call `defmain` with an empty lambda list.
* `require` now compiles to Python AST. * `require` now compiles to Python AST.
* Fixed circular `require`s. * Fixed circular `require`\s.
* Fixed module reloading. * Fixed module reloading.
* Fixed circular imports. * Fixed circular imports.
* Fixed errors from `from __future__ import ...` statements and missing
Hy module docstrings caused by automatic importing of Hy builtins.
* Fixed `__main__` file execution. * Fixed `__main__` file execution.
* Fixed bugs in the handling of unpacking forms in method calls and * Fixed bugs in the handling of unpacking forms in method calls and
attribute access. attribute access.
* Fixed crashes on Windows when calling `hy-repr` on date and time * Fixed crashes on Windows when calling `hy-repr` on date and time
objects. objects.
* Fixed errors from `from __future__ import ...` statements and missing Hy * Fixed a crash in `mangle` for some pathological inputs.
module docstrings caused by automatic importing of Hy builtins. * Fixed incorrect mangling of some characters at low code points.
* Fixed crash in `mangle` for some pathological inputs * Fixed a crash on certain versions of Python 2 due to changes in the
* Fixed incorrect mangling of some characters at low code points standard module `tokenize`.
* Fixed a crash on certain versions of Python 2 due to changes
in the standard module `tokenize`
0.15.0 0.15.0
============================== ==============================