.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: https://github.com/adafruit/circuitpython/issues/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.
.socket_free
is a dict that uses a socket as a key. To enable this,__hash__()
was added to the nativeSocket
class. However, the hash value used is not immutable: https://github.com/adafruit/circuitpython/issues/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 https://github.com/adafruit/circuitpython/issues/4061 with @hierophect.