summaryrefslogtreecommitdiff
path: root/pylru.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylru.py')
-rw-r--r--pylru.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pylru.py b/pylru.py
index c631e27..b3c321a 100644
--- a/pylru.py
+++ b/pylru.py
@@ -39,6 +39,8 @@ else:
# Class for the node objects.
class _dlnode(object):
+ __slots__ = ('empty', 'next', 'prev', 'key', 'value')
+
def __init__(self):
self.empty = True