Skip to content

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