Skip to content

Commit

Permalink
pythongh-71141: Add note on rejecting "leading-dot" syntax for with s…
Browse files Browse the repository at this point in the history
…tatements (python#96928)

Co-authored-by: Daniël van Noord <[email protected]>
  • Loading branch information
slateny and DanielNoord authored Sep 21, 2022
1 parent 57463d4 commit e5ab0b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Doc/faq/design.rst
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,10 @@ This also has the side-effect of increasing execution speed because name
bindings are resolved at run-time in Python, and the second version only needs
to perform the resolution once.

Similar proposals that would introduce syntax to further reduce code volume,
such as using a 'leading dot', have been rejected in favour of explicitness (see
https://mail.python.org/pipermail/python-ideas/2016-May/040070.html).


Why don't generators support the with statement?
------------------------------------------------
Expand Down

0 comments on commit e5ab0b6

Please sign in to comment.