Ticket #4817 defect closed fixed
IPv4Address and UNIXAddress not-equal comparison is broken
| Reported by: | ivank | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | core | Keywords: | easy |
| Cc: | awclinford@… | Branch: | branches/address-not-equal-comparison-4817-2 |
| Author: | exarkun, awclin | Launchpad Bug: |
Description
Both IPv4Address and UNIXAddress implement __eq__, but not __ne__.
>>> from twisted.internet.address import IPv4Address
>>> IPv4Address('TCP', '127.0.0.1', 10000) == IPv4Address('TCP', '127.0.0.1', 10000)
True
>>> IPv4Address('TCP', '127.0.0.1', 10000) != IPv4Address('TCP', '127.0.0.1', 10000)
True
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

