Ignore:
Timestamp:
May 3, 2009, 8:12:41 PM (12 years ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Convert:
svn:778c30c8-61e0-0310-89d4-fe2f97a467b2/trunk@856
Message:
Added comment for `_sort_key` method from Peter Stirling's patch.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lrucache.py

    r787 r788  
    133133
    134134    def _sort_key(self):
    135         """Return a new integer value upon every call."""
     135        """Return a new integer value upon every call.
     136       
     137        Cache nodes need a monotonically increasing time indicator.
     138        time.time() and time.clock() don't guarantee this in a
     139        platform-independent way.
     140        """
    136141        self.__counter += 1
    137142        return self.__counter
Note: See TracChangeset for help on using the changeset viewer.