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

Peter Moody peter at hda3.com
Wed Sep 30 23:56:07 CEST 2009


[- at google.com]

On Wed, Sep 30, 2009 at 2:51 PM, Raymond Hettinger <python at rcn.com> wrote:

I don't know -- this is (from what Peter told me) a common use case so he (and presumably  others) would from time to time have to write extra code to keep track of that IP address in a new app. [MvL] I, and probably others, would really, REALLY like to see one such "common use case". I do find it puzzling that non of the readers here can think of any, and the continued assertion that use cases do exist without them being presented is somewhat disturbing. A concrete use case would help put the discussion on a better technical footing. FWIW, it doesn't look like any of the competing packages ever found a need to add support for this yet-to-be-presented use case:  http://code.google.com/p/netaddr/wiki/YetAnotherPythonIPModule

netaddr actually does have support for this.

import netaddr netaddr.IPNetwork('1.1.1.1/24').ip IPAddress('1.1.1.1')

cheers, /peter

Raymond


Python-Dev mailing list Python-Dev at python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-dev%40hda3.com



More information about the Python-Dev mailing list