-
Notifications
You must be signed in to change notification settings - Fork 175
Closed
Description
Summary
OUI does not have a __hash__ function. This prevents the use of OUI for keys.
- Python Hash documentation link
Example - Break
from netaddr import OUI
a = OUI("002272")
try:
set(a)
except TypeError:
print("Hash failed")
Example - Fix
from netaddr import OUI
a = OUI("002272")
set(a)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels