[issue38655] ipaddress.ip_network('0.0.0.0/0').is_private == True

2020-12-23 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38655] ipaddress.ip_network('0.0.0.0/0').is_private == True

2020-12-14 Thread Michael Woodham
Michael Woodham added the comment: As far as I can tell this is still broken. A hard check for '0.0.0.0/0' should fix this issue. -- nosy: +maw1395 ___ Python tracker ___

[issue38655] ipaddress.ip_network('0.0.0.0/0').is_private == True

2019-11-05 Thread Pete Wicken
Pete Wicken added the comment: Looks like this happens because the is_private method that gets called is from _BaseNetwork, which checks if the network address '0.0.0.0' and the broadcast address '255.255.255.255' are both private, which they are as 0.0.0.0 falls into 0.0.0.0/8. I think

[issue38655] ipaddress.ip_network('0.0.0.0/0').is_private == True

2019-11-04 Thread pascalhofmann
pascalhofmann added the comment: 0.0.0.0/0 is a network with addresses from 0.0.0.0 to 255.255.255.255. 0.0.0.0/8 is a network with addresses from 0.0.0.0 to 0.255.255.255. So 4278190080 out of 4294967296 addresses in 0.0.0.0/0 clearly are no private addresses. --

[issue38655] ipaddress.ip_network('0.0.0.0/0').is_private == True

2019-11-04 Thread Ammar Askar
Ammar Askar added the comment: Aah actually I was looking at an older version of the docs, the documentation now says, "if the address is allocated for private networks" which is actually misleading. The addresses here aren't all private networks:

[issue38655] ipaddress.ip_network('0.0.0.0/0').is_private == True

2019-11-04 Thread Ammar Askar
Ammar Askar added the comment: The documentation for is_private notes: Returns: A boolean, True if the address is reserved per RFC 4193. iana-ipv4-special-registry or iana-ipv6-special-registry. If we take a look at the iana-ipv4-special-registry then 0.0.0.0/8 does show up there:

[issue38655] ipaddress.ip_network('0.0.0.0/0').is_private == True

2019-10-31 Thread pascalhofmann
New submission from pascalhofmann : ipaddress.ip_network('0.0.0.0/0').is_private returns True, even though 0.0.0.0/0 clearly is no private network. -- components: Library (Lib) messages: 355753 nosy: pascalhofmann priority: normal severity: normal status: open title: