Skip to content

bpo-27860: ipaddress: fix Interface missed some attributes #12836

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 15, 2019

Conversation

methane
Copy link
Member

@methane methane commented Apr 15, 2019

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.

https://bugs.python.org/issue27860

methane added 2 commits April 15, 2019 19:37
Network class did not have `.netmask` and `.hostmask`
attributes on some cases.
@methane methane merged commit 6fa84bd into python:master Apr 15, 2019
@methane methane deleted the ipaddress-clean3 branch April 15, 2019 23:32
methane added a commit to methane/cpython that referenced this pull request Jun 18, 2019
…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 <[email protected]>
methane added a commit that referenced this pull request Jun 19, 2019
Interface constructor is documented as accepts address same to Network,
but it didn't accept some form of the address.

This commit is backport of GH-12836 (commit 6fa84bd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants