Can you please explain me what the [0] in host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0] does at the end?
Why not just host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] ) instead? what is the need of [0] ? -- http://mail.python.org/mailman/listinfo/python-list