Skip to content

[3.7] bpo-27860: ipaddress: fix Interface constructor#14200

Merged
methane merged 4 commits intopython:3.7from
methane:ipaddress-3.7
Jun 19, 2019
Merged

[3.7] bpo-27860: ipaddress: fix Interface constructor#14200
methane merged 4 commits intopython:3.7from
methane:ipaddress-3.7

Conversation

@methane
Copy link
Copy Markdown
Member

@methane methane commented Jun 18, 2019

Interface constructor is documented as accepts address same to Network,
but it didn't accept some form of the address.

This is backport of GH-12836 (commit 6fa84bd)

https://bugs.python.org/issue27860

…12836)

IPv4Interface and IPv6Interface did not has netmask and hostmask
attributes when its argument is bytes or int.

This commit extracts method for constructors of Network and Interface,
and ensure Interface class always provides them.

(cherry picked from commit 6fa84bd)
Signed-off-by: Inada Naoki <songofacandy@gmail.com>
@methane methane added the type-bug An unexpected behavior, bug, or error label Jun 18, 2019
@methane methane merged commit f532fe5 into python:3.7 Jun 19, 2019
@methane methane deleted the ipaddress-3.7 branch June 19, 2019 11:47
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.

4 participants