From a1e9c1248097924c5ca66232a963ed0a6fc19169 Mon Sep 17 00:00:00 2001 From: Mahmoud Hashemi Date: Sat, 4 Apr 2015 16:03:53 -0700 Subject: [PATCH] LRI docstring tweak --- boltons/cacheutils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/boltons/cacheutils.py b/boltons/cacheutils.py index 12211db..2dec9ae 100644 --- a/boltons/cacheutils.py +++ b/boltons/cacheutils.py @@ -258,9 +258,13 @@ class LRI(dict): >>> cap_cache['a'], cap_cache['b'] = 'A', 'B' >>> cap_cache {'a': 'A', 'b': 'B'} + >>> [cap_cache['b'] for i in range(3)][0] + 'B' >>> cap_cache['c'] = 'C' - >>> cap_cache.get('A') + >>> print cap_cache.get('a') None + >>> cap_cache.hit_count, cap_cache.miss_count, cap_cache.soft_miss_count + (3, 1, 1) """ # In order to support delitem andn .pop() setitem will need to # popleft until it finds a key still in the cache. or, only