Git Product home page Git Product logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
are there any other thoughts on this?

Original comment by [email protected] on 8 Jan 2009 at 3:54

from ipaddr-py.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
Issue 11 has been merged into this issue.

Original comment by [email protected] on 1 Jun 2009 at 10:57

from ipaddr-py.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
closing this out.

Original comment by [email protected] on 26 Aug 2009 at 9:14

  • Changed state: Fixed

from ipaddr-py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.