Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

        def packNodes(nodes):
    return ''.join([compact_node_info(x['id'], x['host'], x['port']) for x in nodes])
        


src/k/a/kamaelia-HEAD/Sketches/RJL/bittorrent/BitTorrent/khashmir/khashmir.py   kamaelia(Download)
from khash import newID, newIDInRange
 
from util import packNodes
from actions import FindNode, GetValue, KeyExpirer, StoreValue
import krpc
        n = self.Node().initWithDict(sender)
        self.insertNode(n, contacted=0)
        return {"nodes" : packNodes(nodes), "id" : self.node.id}
 
 
            nodes = self.table.findNodes(key, invalid=False)
            nodes = map(lambda node: node.senderDict(), nodes)
            return {'nodes' : packNodes(nodes), "id": self.node.id}
 
###  provides a generic write method, you probably don't want to deploy something that allows