Skip to content

bpo-28577: Special case added to IP v4 and v6 hosts for /32 and /128 networks #18757

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 7 commits into from
Mar 9, 2020

Conversation

JamoBox
Copy link
Contributor

@JamoBox JamoBox commented Mar 2, 2020

Calling hosts() on a /32 IPv4Network now returns a list containing the IPv4Address instead of an empty list.
The same also happens for /128 IPv6Networks

https://bugs.python.org/issue28577

@codecov

This comment has been minimized.

JamoBox and others added 2 commits March 3, 2020 09:07
Signed-off-by: Pete Wicken <petewicken@gmail.com>
Added IPv6 update to news
@JamoBox JamoBox changed the title bpo-28577: Special case added to IPv4Network hosts for /32 networks bpo-28577: Special case added to IP v4 and v6 hosts for /32 and /128 networks Mar 3, 2020
Copy link
Member

@ethanfurman ethanfurman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to Travis there is a file with whitespace issues, and some problem with the docs.

Otherwise, it looks good to me!

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@JamoBox
Copy link
Contributor Author

JamoBox commented Mar 3, 2020

I have made the requested changes; please review again

@bedevere-bot
Copy link

Thanks for making the requested changes!

@ethanfurman: please review the changes made to this pull request.

@bedevere-bot bedevere-bot requested a review from ethanfurman March 3, 2020 20:04
Copy link
Member

@ethanfurman ethanfurman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

I'll give it a couple days in case somebody else want to chime in. Feel free to ping me early next week if this PR is still open.

@JamoBox
Copy link
Contributor Author

JamoBox commented Mar 9, 2020

Looks good!

I'll give it a couple days in case somebody else want to chime in. Feel free to ping me early next week if this PR is still open.

No updates on here or on BPO - do we want to leave it open a bit longer or are you happy to sign off on it?

@miss-islington
Copy link
Contributor

Thanks @JamoBox for the PR, and @ethanfurman for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Thanks @JamoBox for the PR, and @ethanfurman for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry, @JamoBox and @ethanfurman, I could not cleanly backport this to 3.6 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 8e9c47a947954c997d4b725f4551d50a1d896722 3.6

@miss-islington
Copy link
Contributor

Sorry @JamoBox and @ethanfurman, I had trouble checking out the 3.7 backport branch.
Please backport using cherry_picker on command line.
cherry_picker 8e9c47a947954c997d4b725f4551d50a1d896722 3.7

@ethanfurman
Copy link
Member

Will need to do the backports after the RCs are published.

@JamoBox JamoBox deleted the bpo-28577 branch March 12, 2020 20:46
@mathieui
Copy link
Contributor

Hi there, sorry for the noise; it looks like the backports did not happen, did they?

JamoBox added a commit to JamoBox/cpython that referenced this pull request Apr 22, 2021
… /128 networks (pythonGH-18757)

The `.hosts()` method now returns the single address present in a /32 or /128 network..
(cherry picked from commit 8e9c47a)

Co-authored-by: Pete Wicken <2273100+JamoBox@users.noreply.github.com>
JamoBox added a commit to JamoBox/cpython that referenced this pull request Apr 22, 2021
… /128 networks (pythonGH-18757)

The `.hosts()` method now returns the single address present in a /32 or /128 network..
(cherry picked from commit 8e9c47a)

Co-authored-by: Pete Wicken <2273100+JamoBox@users.noreply.github.com>
@bedevere-bot
Copy link

GH-25533 is a backport of this pull request to the 3.7 branch.

JamoBox added a commit to JamoBox/cpython that referenced this pull request Apr 22, 2021
… /128 networks (pythonGH-18757)

The `.hosts()` method now returns the single address present in a /32 or /128 network..
(cherry picked from commit 8e9c47a)

Co-authored-by: Pete Wicken <2273100+JamoBox@users.noreply.github.com>
@JamoBox
Copy link
Contributor Author

JamoBox commented Apr 22, 2021

Hi there, sorry for the noise; it looks like the backports did not happen, did they?

Yep, totally forgot about these - PRs are in for 3.6, 3.7 and 3.8 now. Thanks!

ambv pushed a commit that referenced this pull request Apr 26, 2021
… /128 networks (GH-18757) (#25536)

The `.hosts()` method now returns the single address present in a /32 or /128 network..
(cherry picked from commit 8e9c47a)

Co-authored-by: Pete Wicken <2273100+JamoBox@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants