[issue42861] ipaddress - add ability to get next closet subnet of any prefix size

2021-01-07 Thread Faisal Mahmood
New submission from Faisal Mahmood : The ipaddress module in Python is an excellent tool, but I noticed it is missing a feature that I needed several months ago, which is the ability to find the next closest subnet with a specific prefix length. For example, imagine I had a IPv4Network

[issue42861] ipaddress - add ability to get next closet subnet of any prefix size

2021-01-07 Thread Faisal Mahmood
Faisal Mahmood added the comment: Not sure how to edit an issue, but I made a mistake, where I said: "...Calling this method would return an IPv4/v6 address that is the closest possible match..." I meant to say: "...Calling this method would return an IPv4/v6 -NETWORK- that

[issue42861] ipaddress - add ability to get next closet network of any prefix size

2021-01-09 Thread Faisal Mahmood
Faisal Mahmood added the comment: Updated the title and method naming, I previously mentioned the "next subnet" and called the method "next_subnet", but technically this is wrong. What this method should be doing is finding the next closest network of prefix size n. S

[issue42861] ipaddress - add ability to get next closet network of any prefix size

2021-01-09 Thread Faisal Mahmood
Change by Faisal Mahmood : -- keywords: +patch pull_requests: +23006 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24180 ___ Python tracker <https://bugs.python.org/issu

[issue42861] ipaddress - add ability to get next closet network of any prefix size

2021-02-08 Thread Faisal Mahmood
Faisal Mahmood added the comment: Bump :) -- ___ Python tracker <https://bugs.python.org/issue42861> ___ ___ Python-bugs-list mailing list Unsubscribe: