Beispiel #1
0
 def __init__(self,id=None):
     Persistent.__init__(self)
     self.id = id
     self.events = {}
     self.time = 0L
     self.nextEventId=1
     self.stopped = False
     self.debug = False
Beispiel #2
0
 def __init__(self, id=None):
     Persistent.__init__(self)
     self.id = id
     self.events = {}
     self.time = 0L
     self.nextEventId = 1
     self.stopped = False
     self.debug = False
Beispiel #3
0
#!/usr/bin/env python

from persist import P, Persistent

import time

if __name__ == "__main__":

    for i in xrange(3000000):
        o = Persistent()
        o.id = i
        p = P(o)
    print len(P.instances)

    time.sleep(10000)
Beispiel #4
0
 def __init__(self,id=None):
     Persistent.__init__(self,id)