]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-71141: Add note on rejecting "leading-dot" syntax for with statements (#96928) 95567/head
authorStanley <46876382+slateny@users.noreply.github.com>
Wed, 21 Sep 2022 04:16:39 +0000 (21:16 -0700)
committerGitHub <noreply@github.com>
Wed, 21 Sep 2022 04:16:39 +0000 (21:16 -0700)
Co-authored-by: Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>
Doc/faq/design.rst

index 9da1d01abd6f51b33be0c63044020d2ba8d64a44..52388fca5cdbcab7296fbffcbae7cee6530e74d0 100644 (file)
@@ -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?
 ------------------------------------------------