File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -251,6 +251,7 @@ statements: a ``try`` statement's ``else`` clause runs when no exception
251
251
occurs, and a loop's ``else `` clause runs when no ``break `` occurs. For more on
252
252
the ``try `` statement and exceptions, see :ref: `tut-handling `.
253
253
254
+ .. index :: single: ...; placeholder
254
255
.. _tut-pass :
255
256
256
257
:keyword: `!pass ` Statements
@@ -277,6 +278,12 @@ at a more abstract level. The :keyword:`!pass` is silently ignored::
277
278
... pass # Remember to implement this!
278
279
...
279
280
281
+ For this last case, many people use the ellipsis literal :code: `... ` instead of
282
+ :code: `pass `. This use has no special meaning to Python, and it is not part of
283
+ the language definition (you could use any constant expression here), but
284
+ :code: `... ` is used conventionally as a placeholder body as well.
285
+ See :ref: `bltin-ellipsis-object `.
286
+
280
287
281
288
.. _tut-match :
282
289
You can’t perform that action at this time.
0 commit comments