Changeset 660 for branches


Ignore:
Timestamp:
05/25/13 05:23:32 (3 years ago)
Author:
mmckerns
Message:

added new caching algorithms, need merging with features in memoize

Location:
branches/decorate
Files:
8 added
1 edited

Legend:

Unmodified
Added
Removed
  • branches/decorate/memoize.py

    r659 r660  
    1414    return True 
    1515  except TypeError: return False 
     16 #return hasattr(x, '__len__') or hasattr(x, '__iter__') 
     17 
    1618 
    1719def deep_round_factory(tol): 
     
    384386    return dec 
    385387 
     388#FIXME: use cache maxsize algorithms... where dump if maxsize 
     389#FIXME: can make trash_archive where archives to del 
     390#FIXME: can have serializer be 'hash' or lambda x:x 
     391#FIXME: should sort(kwds.items) in argstr; probably add an object to separate  
    386392 
    387393class memoize(object): 
Note: See TracChangeset for help on using the changeset viewer.