New submission from Matt Ward :
The 3.8 documentation still includes the text.
```Note that in Python, unlike C, assignment cannot occur inside expressions. C
programmers may grumble about this, but it avoids a common class of problems
encountered in C programs: typing = in an expression when == was intended.```
https://docs.python.org/3.8/tutorial/datastructures.html#more-on-conditions
This would seem to no longer be the case with with the inclusion of
https://www.python.org/dev/peps/pep-0572/ in 3.8 unless I am misunderstanding
the above statement.
--
assignee: docs@python
components: Documentation
messages: 355151
nosy: Matt Ward, docs@python
priority: normal
severity: normal
status: open
title: Data Structures documentation out of sync with new Walrus operator
type: enhancement
versions: Python 3.8
___
Python tracker
<https://bugs.python.org/issue38558>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com