python-ipy icon indicating copy to clipboard operation
python-ipy copied to clipboard

Release 1.02 Fix a bug: last_ip can't be compressed

Open thianda91 opened this issue 5 years ago • 1 comments

>>>IP('2001:0658:022a:cafe:0200::/120').strCompressed(3)

expected:

2001:658:22a:cafe:200::-2001:658:22a:cafe:200::ff

but Release 1.01 output:

2001:658:22a:cafe:200::-2001:0658:022a:cafe:0200:0000:0000:00ff

Now we can fix it!

thianda91 avatar Jan 20 '21 01:01 thianda91

After a few years, why the author ignore my suggestion. Isn't it useful? Just add some lines in file IPy.py:

https://github.com/autocracy/python-ipy/pull/74/commits/f736a51b0332776b7ca2b9a79a807c67a8e746dd#diff-49161764545faea80130552e1a7f792e87c7b16aceeebde35b905f8a961205adR406-R411

thianda91 avatar Aug 17 '23 03:08 thianda91