[issue21386] ipaddress.IPv4Address.is_global not implemented

Berker Peksag report at bugs.python.org
Sat May 24 03:14:34 CEST 2014


Berker Peksag added the comment:

+    @property
+    def is_global(self):
+        return (not self in IPv4Network('100.64.0.0/10') and

Can IPv4Network('100.64.0.0/10') moved to the _IPv4Constants class (e.g. _IPv4Constants._global_network = IPv4Network('100.64.0.0/10')) after http://hg.python.org/cpython/rev/e5d963cb6afc (see also issue 21513)

+                not self.is_private)

----------
nosy: +berker.peksag
stage:  -> patch review
versions:  -Python 3.4

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


More information about the Python-bugs-list mailing list