Skip to content

using sockets as dict keys #66

Closed
Closed
@dhalbert

Description

@dhalbert

.socket_free is a dict that uses a socket as a key. To enable this, __hash__() was added to the native Socket class. However, the hash value used is not immutable: adafruit/circuitpython#4101.

The hash function could be fixed, or perhaps the use of a dict that needs to use sockets as a key could be revisited here.

Encountered while debugging adafruit/circuitpython#4061 with @hierophect.

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