File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -5869,13 +5869,20 @@ It is written as ``None``.
5869
5869
The Ellipsis Object
5870
5870
-------------------
5871
5871
5872
- This object is commonly used by slicing (see :ref: `slicings `). It supports no
5872
+ This object is commonly used as a placeholder of another objects, values or even
5873
+ instructions. It supports no
5873
5874
special operations. There is exactly one ellipsis object, named
5874
5875
:const: `Ellipsis ` (a built-in name). ``type(Ellipsis)() `` produces the
5875
5876
:const: `Ellipsis ` singleton.
5876
5877
5877
5878
It is written as ``Ellipsis `` or ``... ``.
5878
5879
5880
+ For instance, at the standard library and its documentation, ``Ellipsis `` can
5881
+ appears in :ref: `pretty printers <prettyprinter-objects >`,
5882
+ :const: `documentation tests <doctest.ELLIPSIS> `,
5883
+ :ref: `type annotations <annotating-callables >`,
5884
+ or instead of :ref: `pass statement <tut-pass >`.
5885
+
5879
5886
5880
5887
.. _bltin-notimplemented-object :
5881
5888
You can’t perform that action at this time.
0 commit comments