[Python-Dev] PEP 3144 review. (original) (raw)

Stephen J. Turnbull stephen at xemacs.org
Tue Sep 15 20:54:35 CEST 2009


Scott Dial writes:

ipaddr.IPv4Network('1.1.1.0/24')[0] == ipaddr.IPv4Network('1.1.1.0/24')

So foo returns True?

def foo(): a = ipaddr.IPv4Network('1.1.1.0/24') return a[0] == a

That seems ... weird. Maybe you committed a typo?



More information about the Python-Dev mailing list