[issue41417] SyntaxError: assignment expression within assert
Ronald Oussoren
report at bugs.python.org
Tue Jul 28 04:10:23 EDT 2020
Ronald Oussoren <ronaldoussoren at mac.com> added the comment:
I don't know if this limitation is intentional, but not that you can use an assignment expression when you enclose the expression with parenthesis:
>>> assert (a:=1)
>>> a
1
>>>
----------
nosy: +ronaldoussoren
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41417>
_______________________________________
More information about the Python-bugs-list
mailing list