On Sun, 26 Jul 2009 12:40:39 -0700, Paul Barry wrote: > On Jul 26, 12:53 pm, Roy Smith <[email protected]> wrote: >> In article >> <[email protected]>, >> Paul Barry <[email protected]> wrote: >> >> > host = '127.0.0.1' # Bind to all interfaces >> >> This threw me off the track for a little while. The comment is wrong! >> You're not binding to all interfaces, you're binding specifically to >> the loopback interface. For what you're doing, it's fine, but the >> comment is still wrong. > > You are right. The example in the book actually has > > host = '' > > So the comment is correct. In trying to debug what was going on, I put > 127.0.0.1 to see if that had something to do with it, which it didn't.
Now I have to quote Aahz's email sig: "At Resolver we've found it useful to short-circuit any doubt and just refer to comments in code as 'lies'. " --Michael Foord paraphrases Christian Muirhead on python-dev, 2009-03-22 > But why not use > > print buf[0] > > instead of > > sys.stdin.write(buf[0]) > > that much, I don't know. print adds a trailing newline to the output, so the two lines aren't quite equivalent. -- Steven -- http://mail.python.org/mailman/listinfo/python-list
