[issue40730] Odd sentence in 3.9 What's New

New submission from Eric V. Smith <eric@trueblade.com>: https://docs.python.org/3.9/whatsnew/3.9.html#optimizations has this sentence: "Unlike to the := operator this idiom does not leak a variable to the outer scope.". I'm not exactly sure what it should be. Probably the first "to" should be deleted? ---------- assignee: docs@python components: Documentation messages: 369607 nosy: docs@python, eric.smith priority: normal severity: normal status: open title: Odd sentence in 3.9 What's New versions: Python 3.9 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40730> _______________________________________

Florian Dahlitz <f.dahlitz@outlook.de> added the comment: Hi @eric.smith. I'm sure the first "to" can be removed. It sounds better this way. Am I free to open a PR? ---------- nosy: +DahlitzFlorian _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40730> _______________________________________

Eric V. Smith <eric@trueblade.com> added the comment: Yes, please go ahead. ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40730> _______________________________________

Change by Florian Dahlitz <f.dahlitz@outlook.de>: ---------- keywords: +patch pull_requests: +19585 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20316 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40730> _______________________________________

miss-islington <mariatta.wijaya+miss-islington@gmail.com> added the comment: New changeset 30d5a7364db9e65ccabbdce2c20b84fe2fb233fb by Florian Dahlitz in branch 'master': bpo-40730: Remove redundant 'to' (GH-20316) https://github.com/python/cpython/commit/30d5a7364db9e65ccabbdce2c20b84fe2fb... ---------- nosy: +miss-islington _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40730> _______________________________________

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

Eric V. Smith <eric@trueblade.com> added the comment: New changeset 983b17ca1319adf9f06d5f2779a44450241eba54 by Miss Islington (bot) in branch '3.9': bpo-40730: Remove redundant 'to' (GH-20316) (GH-20318) https://github.com/python/cpython/commit/983b17ca1319adf9f06d5f2779a44450241... ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40730> _______________________________________

Eric V. Smith <eric@trueblade.com> added the comment: Thanks, @DahlitzFlorian! ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40730> _______________________________________
participants (3)
-
Eric V. Smith
-
Florian Dahlitz
-
miss-islington