Changeset 587 for branches


Ignore:
Timestamp:
11/06/12 14:04:13 (4 years ago)
Author:
mmckerns
Message:

added access to memory cache for memoizing decorators

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/decorate/memoize.py

    r581 r587  
    7979            except: #TypeError 
    8080                return f(*args, **kwds) 
     81        func.memo = memo 
    8182        return func 
    8283    return dec 
     
    108109            except: #TypeError 
    109110                return f(*args, **kwds) 
     111        func.memo = memo 
    110112        return func 
    111113    return dec 
     
    129131        except: #TypeError 
    130132            return f(*args, **kwds) 
     133    func.memo = memo 
    131134    return func 
    132135 
Note: See TracChangeset for help on using the changeset viewer.