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
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
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
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
Faisal Mahmood added the comment:
Bump :)
--
___
Python tracker
<https://bugs.python.org/issue42861>
___
___
Python-bugs-list mailing list
Unsubscribe: