Skip to content

is_iterator doctest incorrect for list #31291

Closed
@jbrockmendel

Description

@jbrockmendel

The docstring and doctest say that lists are considered iterators, but isiterator([1, 2, 3]) (one of the docstring examples) returns False (which I think is a more useful behavior.

Is this doctest not run?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions