Comments (5)
What do others think? I could go either way on the first point, that excluding
a
block completely outside the netblock would just return the same netblock
instead of
raising a ValueError.
On the second point, that comparison between IPv4 and IPv6 should not raise an
error,
I disagree.
Original comment by [email protected]
on 18 Dec 2008 at 4:41
from ipaddr-py.
unfortunately, python gives us two different models.
Arrays:
>>> ['a','b'].remove('c')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ValueError: list.remove(x): x not in list
and strings:
>>> 'ab'.strip('c')
'ab'
I guess the question is, what are ip addresses more like, Arrays or strings? I
tend to think they're more like
Arrays (which is why I originally had it raise the exception)
Original comment by [email protected]
on 18 Dec 2008 at 5:58
from ipaddr-py.
are there any other thoughts on this?
Original comment by [email protected]
on 8 Jan 2009 at 3:54
from ipaddr-py.
Issue 11 has been merged into this issue.
Original comment by [email protected]
on 1 Jun 2009 at 10:57
from ipaddr-py.
closing this out.
Original comment by [email protected]
on 26 Aug 2009 at 9:14
- Changed state: Fixed
from ipaddr-py.
Related Issues (20)
- Support for rfc6598 space in IPv4Network/Address.is_private HOT 3
- Sorting ips with different versions: TypeError: are not of the same version HOT 3
- IPv*Interface objects in the same network but different addresses hash to the same value and compare as equal HOT 1
- Link-Local IPv6 Unicast Addresses should be fe80::/64 instead of fe80::/10
- IPAddress/IPNetwork objects not picklable HOT 1
- Google drive limitation :( HOT 3
- Add support for ipv6 addresses that are wrapped in '[<ipv6]' HOT 1
- Patch: Construct networks with (ip, prefixlen) tuples HOT 3
- README insufficiency
- I think IPNetwork objects should have a len() method (really __len__ I suppose) HOT 2
- Add support for changing the prefixlen on existing objects HOT 1
- code.google.com usage HOT 2
- Incorrect SVN export HOT 10
- plans for Python 3.x support? HOT 2
- "ip_int=0L" variable have a extra string in ipaddr.py HOT 2
- pypi broken HOT 4
- pypi does not have working python 3 version HOT 4
- ipaddr.IPv6Network("fc00:101:0:3::/56").subnet(new_prefix = 64) BUG
- Respectful code cleanup HOT 7
- No module named lib2to3 with python-3.13 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ipaddr-py.