GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — IP Interface is_unspecified broken · Issue #115766 · python/cpython Closed Labels stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug reportBug description:from ipaddress import ip_interface ip_interface('0.0.0.0/32').is_unspecified == False ip_interface('0.0.0.0/32').network.is_unspecified == True ip_interface('0.0.0.0/32').ip.is_unspecified == True Per the documentation, the IP interface classes inherit all properties from the associated address classes. As such, Given that an interface is just a network and host combined, it might be reasonable for the implementation of The current implementation isn't specified for an interface, so it falls back to the address implementation which checks if the address equals '0.0.0.0', although this subtly always fails because the interface equality function is used which will never return CPython versions tested on:CPython main branch Operating systems tested on:Linux Linked PRsActivity
MetadataMetadataAssigneesLabelsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error Projects
MilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |