[issue20860] ipaddress network subnets() method should return object with __getitem__

R. David Murray report at bugs.python.org
Thu Mar 6 23:14:13 CET 2014


R. David Murray added the comment:

The interface you are suggesting isn't consistent with other stdlib APIs.  Perhaps it would be better to discuss this concept on pyhon-ideas...additional methods for computing the number of subnets for a given prefix, and a different one for constructing one of them, perhaps?  The use cases and appropriate API aren't clear, which is why I suggest taking it to python-ideas.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20860>
_______________________________________


More information about the Python-bugs-list mailing list