pychess.System.LimitedDict
index
/home/thomas/Programmering/python/skak/svn/lib/pychess/System/LimitedDict.py

This is a dictionary, that supports a max of items.
This is good for the transportation table, as some old entries might not
be useable any more, as the position has totally changed

 
Classes
       
UserDict.UserDict
LimitedDict

 
class LimitedDict(UserDict.UserDict)
     Methods defined here:
__init__(self, maxSize)
__setitem__(self, key, item)

Methods inherited from UserDict.UserDict:
__cmp__(self, dict)
__contains__(self, key)
__delitem__(self, key)
__getitem__(self, key)
__len__(self)
__repr__(self)
clear(self)
copy(self)
get(self, key, failobj=None)
has_key(self, key)
items(self)
iteritems(self)
iterkeys(self)
itervalues(self)
keys(self)
pop(self, key, *args)
popitem(self)
setdefault(self, key, failobj=None)
update(self, dict=None, **kwargs)
values(self)

Class methods inherited from UserDict.UserDict:
fromkeys(cls, iterable, value=None) from __builtin__.classobj

 
Functions
       
Lock = allocate_lock(...)
allocate_lock() -> lock object
(allocate() is an obsolete synonym)
 
Create a new lock object.  See LockType.__doc__ for information about locks.