You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: peps/pep-0679.rst
+17-2Lines changed: 17 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,7 @@ is out of the scope of this PEP.
96
96
Specification
97
97
=============
98
98
99
-
The formal grammar of the :keyword:`assert` statement will change to:
99
+
The formal grammar of the :keyword:`assert` statement will change to [#edgecase]_:
100
100
101
101
.. code-block::
102
102
@@ -115,7 +115,7 @@ The specification that a :exc:`SyntaxWarning` be raised informing users
115
115
of the new syntax complicates the implementation, as warnings
116
116
should be raised during compilation.
117
117
118
-
The authors believe that an ideal implementation would be in the parser,
118
+
The authors believe that an ideal implementation would be in the parser [#edgecase]_,
119
119
resulting in ``assert (x,y)`` having the same AST as ``assert x,y``.
120
120
This necessitates a two-step implementation plan, with a necessary temporary
121
121
compromise.
@@ -282,14 +282,29 @@ Footnotes
282
282
=========
283
283
284
284
.. [#SO1] `StackOverflow: "'assert' statement with or without parentheses" <https://stackoverflow.com/questions/3112171/assert-statement-with-or-without-parentheses>`_
285
+
285
286
.. [#RD] `/r/python: "Rant: use that second expression in assert! " <https://www.reddit.com/r/Python/comments/1n87g91/rant_use_that_second_expression_in_assert/>`_
0 commit comments