Skip to content

IndexedSet does not work correctly with negative indexes in slices #274

@darlove

Description

@darlove

Hi there.

I have an indexed set with thousands of ints in it but this s[-4:-1] returns an empty set, IndexedSet([ ]). Slicing with positive bounds seems to work fine, though. You can easily get rid of this bug if you use the slice object that has all the necessary machinery to turn negative indexes into the standard positive ones. Just explore slice.

Thanks.

Best regards,
Darek

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions