Skip to content

[3.6] bpo-29931 fix __lt__ check in ipaddress.ip_interface for both v4 and v6. (GH-879)#2217

Merged
serhiy-storchaka merged 2 commits intopython:3.6from
serhiy-storchaka:backport-7bd8d3e-3.6
Jun 15, 2017
Merged

[3.6] bpo-29931 fix __lt__ check in ipaddress.ip_interface for both v4 and v6. (GH-879)#2217
serhiy-storchaka merged 2 commits intopython:3.6from
serhiy-storchaka:backport-7bd8d3e-3.6

Conversation

@serhiy-storchaka
Copy link
Member

the original logic was just comparing the network address
but this is wrong because if the network address is equal then
we need to compare the ip address for breaking the tie

add more ip_interface comparison tests.
(cherry picked from commit 7bd8d3e)

…4 and v6. (pythonGH-879)

the original logic was just comparing the network address
but this is wrong because if the network address is equal then
we need to compare the ip address for breaking the tie

add more ip_interface comparison tests.
(cherry picked from commit 7bd8d3e)
@serhiy-storchaka serhiy-storchaka added the type-bug An unexpected behavior, bug, or error label Jun 15, 2017
@serhiy-storchaka serhiy-storchaka merged commit cf58dfb into python:3.6 Jun 15, 2017
@serhiy-storchaka serhiy-storchaka deleted the backport-7bd8d3e-3.6 branch June 15, 2017 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants