Basic question about sockets and security

2007-05-02 Thread Dave Dean
Hi all, I'm just starting out in sockets/network programming, and I have a very basic question...what are the 'security' implications of opening up a socket? For example, suppose I've written a simple chat server and chat client. The server opens a socket, listens on a port, and accepts inco

urlopen

2007-04-26 Thread Dave Dean
Hi all, I'm running into some trouble using urllib.urlopen to grab a page from our corporate intranet. The name of the internal site is simply http://web (no www or com). I can use urlopen to grab a site like http://www.google.com just fine. However, when I use urlopen to grab the internal

Re: Iterate through list two items at a time

2007-01-02 Thread Dave Dean
Thanks for all the fast responses. I'm particularly a fan of the zip method, followed closely by the xrange example. All, of course, are a lot of help! Thanks, Dave -- http://mail.python.org/mailman/listinfo/python-list

Iterate through list two items at a time

2007-01-02 Thread Dave Dean
Hi all, I'm looking for a way to iterate through a list, two (or more) items at a time. Basically... myList = [1,2,3,4,5,6] I'd like to be able to pull out two items at a time - simple examples would be: Create this output: 1 2 3 4 5 6 Create this list: [(1,2), (3,4), (5,6)] I want the f