#!/usr/bin/env python from threading import local class Client(local): def __init__(self, servers, debug=0): self.k = [_Host(s, self.debuglog) for s in servers] def debuglog(self, str): pass class _Host: def __init__(self, host, debugfunc=None): self.debuglog = debugfunc #a -> b b->a, make the memory be huge! pass