[issue38558] Data Structures documentation out of sync with new Walrus operator

New submission from Matt Ward <matt@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@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 <report@bugs.python.org> <https://bugs.python.org/issue38558> _______________________________________

Change by Karthikeyan Singaravelan <tir.karthi@gmail.com>: ---------- nosy: +emilyemorehouse _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue38558> _______________________________________

Change by Ammar Askar <ammar@ammaraskar.com>: ---------- keywords: +patch pull_requests: +16451 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16919 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue38558> _______________________________________

Zachary Ware <zachary.ware@gmail.com> added the comment: New changeset cb2cf06b0aad1851f54999497c1b50c381d1fdd8 by Zachary Ware (Ammar Askar) in branch 'master': bpo-38558: Mention `:=` in conditions tutorial (GH-16919) https://github.com/python/cpython/commit/cb2cf06b0aad1851f54999497c1b50c381d... ---------- nosy: +zach.ware _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue38558> _______________________________________

Change by miss-islington <mariatta.wijaya+miss-islington@gmail.com>: ---------- pull_requests: +16456 pull_request: https://github.com/python/cpython/pull/16926 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue38558> _______________________________________

miss-islington <mariatta.wijaya+miss-islington@gmail.com> added the comment: New changeset cf028b57169499f82b73dd0977fe0bab40778a60 by Miss Skeleton (bot) in branch '3.8': bpo-38558: Mention `:=` in conditions tutorial (GH-16919) https://github.com/python/cpython/commit/cf028b57169499f82b73dd0977fe0bab407... ---------- nosy: +miss-islington _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue38558> _______________________________________

Ammar Askar <ammar@ammaraskar.com> added the comment: Thank you for the report Matt! ---------- nosy: +ammar2 resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue38558> _______________________________________

Matt Ward <matt@matthewward.net> added the comment: You're welcome! On Fri, Oct 25, 2019 at 10:53 PM Ammar Askar <report@bugs.python.org> wrote:
Ammar Askar <ammar@ammaraskar.com> added the comment:
Thank you for the report Matt!
---------- nosy: +ammar2 resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9
_______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue38558> _______________________________________
---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue38558> _______________________________________

Change by Adorilson Bezerra <adorilson@gmail.com>: ---------- pull_requests: +17458 pull_request: https://github.com/python/cpython/pull/16973 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue38558> _______________________________________

Julien Palard <julien+python@palard.fr> added the comment: New changeset 5807efd4c396d5718325e21f5a14e324a77ff77c by Adorilson Bezerra in branch 'master': bpo-38558: Link to further docs from walrus operator mention in tutorial (GH-16973) https://github.com/python/cpython/commit/5807efd4c396d5718325e21f5a14e324a77... ---------- nosy: +mdk _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue38558> _______________________________________

Change by miss-islington <mariatta.wijaya+miss-islington@gmail.com>: ---------- pull_requests: +17707 pull_request: https://github.com/python/cpython/pull/18335 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue38558> _______________________________________

miss-islington <mariatta.wijaya+miss-islington@gmail.com> added the comment: New changeset d01ae1b22330992eadc7b2a0842ead544f7e507d by Miss Islington (bot) in branch '3.8': bpo-38558: Link to further docs from walrus operator mention in tutorial (GH-16973) https://github.com/python/cpython/commit/d01ae1b22330992eadc7b2a0842ead544f7... ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue38558> _______________________________________
participants (7)
-
Adorilson Bezerra
-
Ammar Askar
-
Julien Palard
-
Karthikeyan Singaravelan
-
Matt Ward
-
miss-islington
-
Zachary Ware