Skip to content

Commit e8e0582

Browse files
committed
Doc: Change Ellipsis doc at library/stdtypes
1 parent 01a9007 commit e8e0582

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Doc/library/stdtypes.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5869,13 +5869,20 @@ It is written as ``None``.
58695869
The Ellipsis Object
58705870
-------------------
58715871

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
58735874
special operations. There is exactly one ellipsis object, named
58745875
:const:`Ellipsis` (a built-in name). ``type(Ellipsis)()`` produces the
58755876
:const:`Ellipsis` singleton.
58765877

58775878
It is written as ``Ellipsis`` or ``...``.
58785879

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+
58795886

58805887
.. _bltin-notimplemented-object:
58815888

0 commit comments

Comments
 (0)