[New-bugs-announce] [issue38558] Data Structures documentation out of sync with new Walrus operator

Matt Ward report at bugs.python.org
Tue Oct 22 16:27:12 EDT 2019


New submission from Matt Ward <matt at matthewward.net>:

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 at python
components: Documentation
messages: 355151
nosy: Matt Ward, docs at 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 <report at bugs.python.org>
<https://bugs.python.org/issue38558>
_______________________________________


More information about the New-bugs-announce mailing list