| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| Add :meth:`~ipaddress.IPv4Network.next_network` and | ||
| :meth:`~ipaddress.IPv6Network.next_network`. Patch by Faisal Mahmood. | ||
| Add :meth:`IPv4Network.next_network() <ipaddress.IPv4Network.next_network>` | ||
| and :meth:`IPv6Network.next_network() <ipaddress.IPv6Network.next_network>`. | ||
| Patch by Faisal Mahmood. |
| Back | FazBrowse Home | New Git URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityWhile technically this style can be used self.__class__((next_ip, next_prefix)) m because IPv4Network and IPv6Network do the _split_addr_prefix, we do not advertise or mention about this the value of the address argument. This styled tripped me a bit.
I would prefer the previous style.
return self.__class__( f"{self._string_from_ip_int(next_ip)}/{next_prefix}" )Because of what we say address can be in the doc strings of the class.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityI realize that public docs document that.
https://docs.python.org/3/library/ipaddress.html#ipaddress.IPv4Network
https://docs.python.org/3/library/ipaddress.html#ipaddress.IPv6Network
The change might simply be a follow up doc string patch on here.
cpython/Lib/ipaddress.py
Lines 2301 to 2319 in a6d25db
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.