Skip to content

Implement Device.__eq__() #147

Closed
Closed
@martijnthe

Description

@martijnthe

I'd like to be able to write something like:

devs = set()
devs |= set(usb.core.find(find_all=True, custom_match=matcher_one))
devs |= set(usb.core.find(find_all=True, custom_match=matcher_two))

If matcher_one and matcher_two both match device XYZ, devs will contain two instances of Device referring to XYZ. I'd expect devs to contain only one instance referring to XYZ.

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