Skip to content

Ellipsis documentation #138307

@adorilson

Description

@adorilson

Explanation

The Ellipsis built-in constant’s documentation says:

The same as the ellipsis literal “...”. Special value used mostly in conjunction with extended slicing syntax for user-defined container data types. Ellipsis is the sole instance of the types.EllipsisType type.

The snippet Special value used mostly in conjunction with extended slicing syntax for user-defined container data types isn’t too helpful.

I think using Ellipsis instead of pass is more common, simple and, mainly, it is built-in.

I suggest adding an Ellipsis’ reference to the pass documentation on the tutorial and replacing the snippet above with a pass reference that includes a link.

PR

I opened a discuss thread some weeks ago. After some discussion, I opened the PR #138306.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions