Update docs and README

This commit is contained in:
Kodi Arfer 2019-03-17 18:40:37 -04:00
parent ad97042b6b
commit 30fc1425c1
2 changed files with 6 additions and 8 deletions

View File

@ -3,6 +3,10 @@
Unreleased
==============================
Removals
------------------------------
* Python 3.4 is no longer supported.
New Features
------------------------------
* Format strings with embedded Hy code (e.g., `f"The sum is {(+ x y)}"`)

View File

@ -1678,20 +1678,14 @@ object (respectively) to provide positional or keywords arguments
=> (f #* [1 2] #** {"c" 3 "d" 4})
[1, 2, 3, 4]
With Python 3, you can unpack in an assignment list (:pep:`3132`).
With Python 3, unpacking is allowed in more contexts, and you can unpack
more than once in one expression (:pep:`3132`, :pep:`448`).
.. code-block:: clj
=> (setv [a #* b c] [1 2 3 4 5])
=> [a b c]
[1, [2, 3, 4], 5]
With Python 3.5 or greater, unpacking is allowed in more contexts than just
function calls, and you can unpack more than once in the same expression
(:pep:`448`).
.. code-block:: clj
=> [#* [1 2] #* [3 4]]
[1, 2, 3, 4]
=> {#** {1 2} #** {3 4}}