[issue22962] ipaddress: Add optional prefixlen argument to ip_interface and ip_network

2017-03-26 Thread Gary van der Merwe
Gary van der Merwe added the comment: Indeed. Thanks to whoever fixed this. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue22962] ipaddress: Add optional prefixlen argument to ip_interface and ip_network

2017-03-23 Thread Ilya Kulakov
Ilya Kulakov added the comment: You can initialize ip_interface via a tuple of 2 elements: IP address and a prefix (prefixlen or string representation of a netmask). I believe the issue can be closed now. -- nosy: +Ilya.Kulakov ___ Python tracker

[issue22962] ipaddress: Add optional prefixlen argument to ip_interface and ip_network

2014-11-28 Thread Gary van der Merwe
New submission from Gary van der Merwe: Currently if one has an ip address in int or IPv4Address/IPv6Address form, it is not possilbe to create a ip_interface or ip_network from that with specific prefix length, without first converting the address into string form, and then appending the

[issue22962] ipaddress: Add optional prefixlen argument to ip_interface and ip_network

2014-11-28 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +ncoghlan, pmoody versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22962 ___