Browse Source

Issue 35224: Add PEP 572 (assignment expressions) to What's New (#12941)

This is meant as a stub, during the PyCon sprints we can iterate.
pull/12944/head
Guido van Rossum 7 years ago
committed by GitHub
parent
commit
09d434caa2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      Doc/whatsnew/3.8.rst

16
Doc/whatsnew/3.8.rst

@ -67,6 +67,22 @@ Summary -- Release highlights
New Features
============
Assignment expressions
----------------------
There is new syntax (the "walrus operator", ``:=``) to assign values
to variables as part of an expression. Example::
if (n := len(a)) > 10:
print(f"List is too long ({n} elements, expected <= 10)")
See :pep:`572` for a full description.
(Contributed by Emily Morehouse in :issue:`35224`.)
.. TODO: Emily will sprint on docs at PyCon US 2019.
Parallel filesystem cache for compiled bytecode files
-----------------------------------------------------

Loading…
Cancel
Save