Update NEWS for release
This commit is contained in:
parent
e6d6a02f0c
commit
b3aabd5564
45
NEWS.rst
45
NEWS.rst
@ -1,6 +1,6 @@
|
|||||||
.. default-role:: code
|
.. default-role:: code
|
||||||
|
|
||||||
Unreleased
|
0.18.0
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
Removals
|
Removals
|
||||||
@ -10,41 +10,40 @@ Removals
|
|||||||
and `defn` instead.
|
and `defn` instead.
|
||||||
* Literal keywords are no longer parsed differently in calls to functions
|
* Literal keywords are no longer parsed differently in calls to functions
|
||||||
with certain names.
|
with certain names.
|
||||||
* `hy.contrib.multi` has been removed. Use ``cond`` or the PyPI package
|
* `hy.contrib.multi` has been removed. Use `cond` or the PyPI package
|
||||||
``multipledispatch`` instead.
|
`multipledispatch` instead.
|
||||||
|
|
||||||
New Features
|
|
||||||
------------------------------
|
|
||||||
* Added special forms ``py`` to ``pys`` that allow Hy programs to include
|
|
||||||
inline Python code.
|
|
||||||
* Added a special form ``cmp`` for chained comparisons.
|
|
||||||
* All augmented assignment operators (except `%=` and `^=`) now allow
|
|
||||||
more than two arguments.
|
|
||||||
* PEP 3107 and PEP 526 function and variable annotations are now supported.
|
|
||||||
* Added function ``parse-args`` which parses arguments with ``argparse``.
|
|
||||||
|
|
||||||
Other Breaking Changes
|
Other Breaking Changes
|
||||||
------------------------------
|
------------------------------
|
||||||
* ``HySequence`` is now a subclass of ``tuple`` instead of ``list``.
|
* `HySequence` is now a subclass of `tuple` instead of `list`.
|
||||||
Thus, a ``HyList`` will never be equal to a ``list``, and you can't
|
Thus, a `HyList` will never be equal to a `list`, and you can't
|
||||||
use ``.append``, ``.pop``, etc. on an expression or list.
|
use `.append`, `.pop`, etc. on a `HyExpression` or `HyList`.
|
||||||
|
|
||||||
|
New Features
|
||||||
|
------------------------------
|
||||||
|
* Added special forms `py` to `pys` that allow Hy programs to include
|
||||||
|
inline Python code.
|
||||||
|
* Added a special form `cmp` for chained comparisons.
|
||||||
|
* All augmented assignment operators (except `%=` and `^=`) now allow
|
||||||
|
more than two arguments.
|
||||||
|
* Added support for function annotations (PEP 3107) and variable
|
||||||
|
annotations (PEP 526).
|
||||||
|
* Added a function `parse-args` as a wrapper for Python's `argparse`.
|
||||||
|
|
||||||
Bug Fixes
|
Bug Fixes
|
||||||
------------------------------
|
------------------------------
|
||||||
* Statements in the second argument of `assert` are now executed.
|
* Statements in the second argument of `assert` are now executed.
|
||||||
* Fixed the expression of a while loop that contains statements being compiled twice.
|
* Fixed a bug that caused the condition of a `while` to be compiled
|
||||||
|
twice.
|
||||||
* `in` and `not-in` now allow more than two arguments, as in Python.
|
* `in` and `not-in` now allow more than two arguments, as in Python.
|
||||||
* `hy2py` can now handle format strings.
|
* `hy2py` can now handle format strings.
|
||||||
* Fixed crashes from inaccessible history files.
|
* Fixed crashes from inaccessible history files.
|
||||||
* The unit tests no longer unintentionally import the internal Python module "test".
|
* Removed an accidental import from the internal Python module `test`.
|
||||||
This allows them to pass when run inside the "slim" Python Docker images.
|
* Fixed a swarm of bugs in `hy.extra.anaphoric`.
|
||||||
* `ap-reduce` now accepts any iterable.
|
|
||||||
* `ap-reduce` now evaluates its arguments only once.
|
|
||||||
|
|
||||||
Misc. Improvements
|
Misc. Improvements
|
||||||
------------------------------
|
------------------------------
|
||||||
* Drop the use of the long-abandoned `clint <https://github.com/kennethreitz/clint>`_ library
|
* Replaced the dependency `clint` with `colorama`.
|
||||||
for colors. `colorama <https://github.com/tartley/colorama>`_ is now used instead.
|
|
||||||
|
|
||||||
0.17.0
|
0.17.0
|
||||||
==============================
|
==============================
|
||||||
|
Loading…
Reference in New Issue
Block a user