Skip to content

Commit 5688029

Browse files
committed
Doc: Update Ellipsis doc concerns assignments at library/constants
1 parent fae75b7 commit 5688029

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/constants.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ A small number of constants live in the built-in namespace. They are:
6666
.. data:: Ellipsis
6767

6868
The same as the ellipsis literal "``...``", an object frequently used as a
69-
placeholder of another values.
69+
placeholder of another values. Assignments to ``Ellipsis`` are possible.
70+
However, assignments to ``...`` are illegal and raise a :exc:`SyntaxError`.
7071
``Ellipsis`` is the sole instance of the :data:`types.EllipsisType` type.
7172

7273

0 commit comments

Comments
 (0)