h0arry / ipaddr-py

Automatically exported from code.google.com/p/ipaddr-py
0 stars 0 forks source link

Behavoir of 'exploded' does not match PEP 3144 #88

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

>>> from ipaddr import *
>>> IPNetwork("::1").exploded

What is the expected output? What do you see instead?

Expected output is "0000:0000:0000:0000:0000:0000:0000:0001/128".
Actual output is "0000:0000:0000:0000:0000:0000:0000:0001"

What version of the product are you using? On what operating system?

Version 2.1.9, on
  CentOS 5.6 with python 2.4.3
  OS X 10.5.8 with python 2.5.1

Please provide any additional information below.

Expected output is implied by PEP 3144

Original issue reported on code.google.com by clint.he...@gmail.com on 7 Sep 2011 at 9:53

GoogleCodeExporter commented 9 years ago
hrm, I see that. We're actually explicitly testing that the prefixlen isn't in 
the exploded string.

http://codereview.appspot.com/5438048 should fix it. There's another change to 
the args passed to the private _explode_shorthand_ip_string() methods that I 
want to email the list about before submitting.

Original comment by pmo...@google.com on 24 Nov 2011 at 10:08

GoogleCodeExporter commented 9 years ago

Original comment by pmo...@google.com on 24 Nov 2011 at 10:18

GoogleCodeExporter commented 9 years ago
fixed in r236

Original comment by pmo...@google.com on 29 Nov 2011 at 1:19