Skip to content

.isdisjoint() method is missing in Set #41045

@maxale

Description

@maxale

Problem Description

We have

sage: set().isdisjoint(set())
True

sage: Set().isdisjoint(Set())
[...]
AttributeError: 'Set_object_enumerated_with_category' object has no attribute 'isdisjoint'

Proposed Solution

Make Set as much consistent with Python's set, in particular, add .isdisjoint() method.

Alternatives Considered

N/A

Additional Information

No response

Is there an existing issue for this?

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions