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

Faisal Mahmood report at bugs.python.org
Sat Jan 9 11:19:40 EST 2021


Faisal Mahmood <fasial.mahmood94 at gmail.com> 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.

So I guess the method definition should be:
`next_network(self, next_network=None)`

----------
title: ipaddress - add ability to get next closet subnet of any prefix size -> ipaddress - add ability to get next closet network of any prefix size

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42861>
_______________________________________


More information about the Python-bugs-list mailing list