Browse Source
``` $ python3 -O Python 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> assert (x := 2) >>> x Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'x' is not defined ``` pity. it looked to be a neat and concise pattern.master
6 changed files with 18 additions and 9 deletions
Loading…
Reference in new issue