PEP-654: add mention of the syntax options discussion (#2103)
This commit is contained in:
parent
cffbc84fad
commit
941a31395d
31
pep-0654.rst
31
pep-0654.rst
|
@ -1375,6 +1375,22 @@ clauses. We rejected this because it would be less obvious. The fact that we
|
|||
are handling exception groups of ``T`` rather than only naked ``Ts`` should be
|
||||
specified in the same place where we state ``T``.
|
||||
|
||||
Alternative syntax options
|
||||
--------------------------
|
||||
|
||||
Alternatives to the ``except*`` syntax were evaluated in a `discussion on python-dev
|
||||
<http://groups.google.com/g/dev-python/c/G3p9_jovyus>`_, and it was suggested to use
|
||||
``except group``. Upon careful evaluation this was rejected because the following
|
||||
would be ambiguous, as it is currently valid syntax where ``group`` is interpreted
|
||||
as a callable. The same is true for any valid identifier.
|
||||
|
||||
.. code-block::
|
||||
|
||||
try:
|
||||
...
|
||||
except group (T1, T2):
|
||||
...
|
||||
|
||||
|
||||
Programming Without 'except \*'
|
||||
===============================
|
||||
|
@ -1441,12 +1457,15 @@ exception tree whose nodes are exceptions from MultiError, and the ``split()``
|
|||
API from the design document for MultiError V2. The discussions on python-dev
|
||||
and elsewhere helped us improve upon the first draft of the PEP in multiple
|
||||
ways, both the design and the exposition. For this we appreciate all those who
|
||||
contributed ideas and asked good questions: Matthew Barnett, Ran Benita,
|
||||
Emily Bowman, Joao Bueno, Baptiste Carvello, Nick Coghlan, Caleb Donovick,
|
||||
Greg Ewing, Ethan Furman, Larry Hastings, Zac Hatfield-Dodds, Chris Jerdonek,
|
||||
Jim Jewett, Sven Kunze, Glenn Linderman, Paul Moore, Ivan Pozdeev, Terry Reedy,
|
||||
Barry Scott, Damian Shaw, Cameron Simpson, Paul Sokolovsky, Steve Stagg,
|
||||
Marco Sulla, and Petr Viktorin.
|
||||
contributed ideas and asked good questions: Ammar Askar, Matthew Barnett,
|
||||
Ran Benita, Emily Bowman, Brandt Bucher, Joao Bueno, Baptiste Carvello,
|
||||
Rob Cliffe, Nick Coghlan, Steven D'Aprano, Caleb Donovick, Steve Dower,
|
||||
Greg Ewing, Ethan Furman, Pablo Salgado, Jonathan Goble, Thomas Grainger,
|
||||
Larry Hastings, Zac Hatfield-Dodds, Chris Jerdonek, Jim Jewett, Sven Kunze,
|
||||
Łukasz Langa, Glenn Linderman, Paul Moore, Antoine Pitrou, Ivan Pozdeev,
|
||||
Patrick Reader, Terry Reedy, Sascha Schlemmer, Barry Scott, Mark Shannon,
|
||||
Damian Shaw, Cameron Simpson, Gregory Smith, Paul Sokolovsky, Calvin Spealman,
|
||||
Steve Stagg, Victor Stinner, Marco Sulla, Petr Viktorin and Barry Warsaw.
|
||||
|
||||
|
||||
Acceptance
|
||||
|
|
Loading…
Reference in New Issue