Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added EllipsisType to the documentation
  • Loading branch information
Bas van Beek committed Sep 21, 2020
commit 8aecfd52580453da2410f2c69d299a5d99016365
3 changes: 2 additions & 1 deletion Doc/library/constants.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ A small number of constants live in the built-in namespace. They are:
.. index:: single: ...; ellipsis literal
.. data:: Ellipsis

The same as the ellipsis literal "``...``". Special value used mostly in conjunction
The same as the ellipsis literal "``...``" and sole value of the type
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The same as the ellipsis literal "``...``" and sole value of the type
The same as the ellipsis literal "``...``" and the only instance of

:data:`types.EllipsisType`. Special value used mostly in conjunction
with extended slicing syntax for user-defined container data types.


Expand Down
7 changes: 7 additions & 0 deletions Doc/library/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,13 @@ Standard names are defined for the following types:
Defaults to ``None``. Previously the attribute was optional.


.. data:: EllipsisType

The type of :data:`Ellipsis`.

.. versionadded:: 3.10


.. class:: TracebackType(tb_next, tb_frame, tb_lasti, tb_lineno)

The type of traceback objects such as found in ``sys.exc_info()[2]``.
Expand Down