Skip to content

Remove range(0) from example of a sequence/collection as it does not output a sequence anymore or replace it with list(range(0)) #129030

@kushal90

Description

@kushal90

Bug report

Bug description:

On the documentation page, it says that:
"""
Here are most of the built-in objects considered false:
...
empty sequences and collections: '', (), [], {}, set(), range(0)
"""
which is now wrong. Either remove range(0) from the example or change it to list(range(0))

CPython versions tested on:

3.13

Operating systems tested on:

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions