Richard Jones' Log: Friday silliness

Fri, 24 Aug 2007

Seen on the PyWeek message board:

from socket import*;s=socket();s.connect(("pyweek.org",80));s.send("GET /5/entries/ HTTP/1.0\n\n");x=""
while True:
 try:i=s.recv(9);x+=[s.gettimeout(),i][bool(i)]
 except:True=0
False=sum([not True for a in x.split("<dt")[0:-1]])
print False or True

Code by neko.

By the way, the next challenge is a little over a week away. Have you signed up yet? Why not? :)

Comment by David (Neko) on Mon, 03 Sep 2007

I'm famous!