Comments: World's Smallest P2P Code.

The code as reprinted here won't work, because the textual layout of the code doesn't match the original. (In Python, unlike most other programming languages, layout matters.) Working code is at

Posted by Ed Felten at December 16, 2004 03:12 AM

Hmm, it's fun but I don't think it makes a very convincing "smallest", look at the stuff it's using:

import sys, os, SimpleXMLRPCServer, xmlrpclib, re, hmac

If that's acceptable, then surely so should be a one-line version something like :

import P2PClient, P2PServer

Posted by Danny at December 17, 2004 03:43 AM