Opened 2 years ago

Closed 2 years ago

#26432 closed enhancement (fixed)

Allow LinkProtocol to be compared directly against integers

Reported by: dmr Owned by: atagar
Priority: Low Milestone:
Component: Archived/Stem Version:
Severity: Trivial Keywords: client easy
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


From 26227#comment:8:

All attributes of the LinkProtocol are derived from its integer version, so it would be perfectly fine to do equality and hash on that.

Thus: implement __eq__() (and __ne__()) to allow a LinkProtocol instance to be compared directly against integers.

Child Tickets

Change History (2)

comment:1 Changed 2 years ago by dmr

atagar: leaving this unassigned in case someone wants to pick it up; tagged as easy.

comment:2 Changed 2 years ago by atagar

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.