Update docs and README
This commit is contained in:
parent
ad97042b6b
commit
30fc1425c1
4
NEWS.rst
4
NEWS.rst
@ -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)}"`)
|
||||
|
@ -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}}
|
||||
|
Loading…
Reference in New Issue
Block a user