Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
Implementation of a length-limited O(1) LRU queue.
Built for and used by PyPE:
http://pype.sourceforge.net
Copyright 2003 Josiah Carlson.

Modified 2010 by Moxie Marlinspike for lazy/asynchronous expiration.

src/g/o/GoogleSharing-HEAD/server/googleshare/IdentityProvider.py   GoogleSharing(Download)
from random import choice
from Identity import Identity
from ActiveIdentityPool import ActiveIdentityPool
from signal import signal, SIGTERM, SIGINT, SIGQUIT
import os, pickle, logging
    def __init__(self):
        self.identityPool     = set()
        self.peggedIdentities = ActiveIdentityPool(self.identityExpired, 90)
        self.stateFile        = self.getStateFile()