[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('') and

Can IPv4Network('') moved to the _IPv4Constants class (e.g. _IPv4Constants._global_network = IPv4Network('')) 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>

More information about the Python-bugs-list mailing list