[issue16531] Allow IPNetwork to take a tuple

Antoine Pitrou report at bugs.python.org
Fri Nov 23 07:55:00 CET 2012


Antoine Pitrou added the comment:

> Sounds reasonable, especially as it also allows networks and interfaces
> with prefixes other than "/32" or "/128" to be easily constructed based on
> integer address values.
> 
> Should we also allow integers as the second argument, with the same prefix
> length meaning as the corresponding string?

IMO, yes.

----------

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


More information about the Python-bugs-list mailing list