[issue42478] ipaddress.IPv4network.interfaces()

2021-07-17 Thread Andrei Kulakov
Andrei Kulakov added the comment: Related (with PR up): https://bugs.python.org/issue42861 -- nosy: +andrei.avk ___ Python tracker ___

[issue42478] ipaddress.IPv4network.interfaces()

2020-11-28 Thread Wyko ter Haar
Wyko ter Haar added the comment: You bet. Totally forgot when I was replying on my phone :) -- ___ Python tracker ___ ___

[issue42478] ipaddress.IPv4network.interfaces()

2020-11-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42478] ipaddress.IPv4network.interfaces()

2020-11-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Wyko, when responding by email, please delete the message you are responding to, as it is redundant when posted to the web page. -- nosy: +ncoghlan, terry.reedy stage: -> test needed versions: +Python 3.10 -Python 3.9

[issue42478] ipaddress.IPv4network.interfaces()

2020-11-27 Thread Wyko ter Haar
Wyko ter Haar added the comment: Starting at .1, not .0. Sincerely, Wyko ter Haar On Fri, Nov 27, 2020, 10:14 AM Wyko ter Haar wrote: > >>> X = ip_network("10.0.0.0/24") > >>> H= X.hosts(as_interfaces= True) > >>> next(H) > IPv4Interface('10.0.0.0/24') > >>> next(H) >

[issue42478] ipaddress.IPv4network.interfaces()

2020-11-27 Thread Wyko ter Haar
Wyko ter Haar added the comment: >>> X = ip_network("10.0.0.0/24") >>> H= X.hosts(as_interfaces= True) >>> next(H) IPv4Interface('10.0.0.0/24') >>> next(H) IPv4Interface('10.0.0.1/24') Something like that. Sure, I could cast the output of hosts as an interface, but then it would be missing

[issue42478] ipaddress.IPv4network.interfaces()

2020-11-27 Thread Wyko ter Haar
Wyko ter Haar added the comment: Literally just the same thing as .hosts(), except outputting interface objects instead of addresses. Maybe it could be a flag in .hosts() instead, something like "cast_as_interface". Sincerely, Wyko ter Haar On Fri, Nov 27, 2020, 3:18 AM Eric V. Smith

[issue42478] ipaddress.IPv4network.interfaces()

2020-11-26 Thread Eric V. Smith
Eric V. Smith added the comment: I'm not sure what you mean by iterating over the interfaces in a subnet. Could you give an example? -- nosy: +eric.smith ___ Python tracker

[issue42478] ipaddress.IPv4network.interfaces()

2020-11-26 Thread Wyko ter Haar
New submission from Wyko ter Haar : It would be really nice if we could get an iterator just like ip_network.hosts() that iterates over the interfaces in a subnet. -- messages: 381921 nosy: wyko.ter.haar priority: normal severity: normal status: open title: