Code Bash!!! (CacheDictionary)

Sean 'Shaleh' Perry shalehperry at attbi.com
Wed Mar 6 19:56:11 EST 2002


Comments:

*) maxlength=1000, I belive this variable is poorly named.  A dictionary is not
10 items long, it contains 10 items.  Something like maxitems or maxcount.

*) is kill_old() part of the interface for users?  I would guess this method
should be protected with a leading _.

*) self._timeout[k] = int(time()) + self._maxtimeout
                ^^^ -- shouldn't that be 'key'?

*) why use two dictionaries?  why not store data in dict? 





More information about the Python-list mailing list