Re: [Tutor] IP-range

2009-05-25 Thread W W
On Sun, May 24, 2009 at 10:18 PM, Paras K. wrote: > Hello, > > I came across your answer / assistance on the IP range. I am fairly new to > the python world of programming. However, up to this point I have always > been able to get my programs to work by reading the books or following the > guide

Re: [Tutor] IP-range

2009-05-25 Thread Reed O'Brien
On May 24, 2009, at 11:18 PM, Paras K. wrote: Hello, I came across your answer / assistance on the IP range. I recommend looking at the ipaddr library: http://svn.python.org/projects/python/trunk/Lib/ipaddr.py There is some Sphinx documentation with the python 2.7 docs and some on the ori

[Tutor] IP-range

2009-05-25 Thread Paras K.
Hello, I came across your answer / assistance on the IP range. I am fairly new to the python world of programming. However, up to this point I have always been able to get my programs to work by reading the books or following the guides I find through google.com Here is what I have to do: I have

Re: [Tutor] IP-range

2006-08-31 Thread Kent Johnson
Øyvind wrote: > Hello. > > I have a database where I have some IP-ranges. Then I have some logs over > IPs from customers and need to connect the two. Also you might be interested in http://c0re.23.nu/c0de/IPy/ Kent ___ Tutor maillist - Tutor@python.

Re: [Tutor] IP-range

2006-08-31 Thread Kent Johnson
Øyvind wrote: > Hello. > > I have a database where I have some IP-ranges. Then I have some logs over > IPs from customers and need to connect the two. > > So, for example: > > Range 1: > 123.132.122.4-123.132.122.255 > > How do I check if IP 123.132.122.58 is a part of that? I have thought > about

Re: [Tutor] IP-range

2006-08-31 Thread Danny Yoo
On Thu, 31 Aug 2006, �yvind wrote: I have a database where I have some IP-ranges. Then I have some logs over IPs from customers and need to connect the two. So, for example: Range 1: 123.132.122.4-123.132.122.255 Hello, You might want to consider using tuple comparison. For example: ##

[Tutor] IP-range

2006-08-31 Thread Øyvind
Hello. I have a database where I have some IP-ranges. Then I have some logs over IPs from customers and need to connect the two. So, for example: Range 1: 123.132.122.4-123.132.122.255 How do I check if IP 123.132.122.58 is a part of that? I have thought about 4 if statements: split(.) if ip[0