Skip to content

Commit e5ab0b6

Browse files
slatenyDanielNoord
andauthored
gh-71141: Add note on rejecting "leading-dot" syntax for with statements (#96928)
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
1 parent 57463d4 commit e5ab0b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/faq/design.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,10 @@ This also has the side-effect of increasing execution speed because name
703703
bindings are resolved at run-time in Python, and the second version only needs
704704
to perform the resolution once.
705705

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

707711
Why don't generators support the with statement?
708712
------------------------------------------------

0 commit comments

Comments
 (0)