Skip to content
Snippets Groups Projects
Closed Allow LinkProtocol to be compared directly against integers
  • View options
  • Allow LinkProtocol to be compared directly against integers

    • View options
  • Closed created by dmr

    From [ticket: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.

    Attributes

    Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first