Permalink
Browse files

Merge branch 'full_attribute_init' of github.com:kiddouk/redisco into…

… full_attribute_init

Conflicts:
	benchmarks/create.py
	redisco/containers.py
  • Loading branch information...
2 parents 2286405 + 2f29241 commit a3aae273d0f75b22885e53131374e3d450fb9eb5 @kiddouk committed Jul 10, 2012
Showing with 3 additions and 1 deletion.
  1. +1 −1 benchmarks/create.py
  2. +2 −0 redisco/containers.py
View
2 benchmarks/create.py
@@ -39,7 +39,7 @@ def profile():
display_results(t.repeat(repeat=1, number=5000), 'create_events')
t = timeit.Timer('find_events()', 'from __main__ import find_events')
-display_results(t.repeat(repeat=3, number=5000), 'find_events')
+display_results(t.repeat(repeat=1, number=5000), 'find_events')
t = timeit.Timer('load_events()', 'from __main__ import load_events')
display_results(t.repeat(repeat=1, number=5000), 'load_events')
View
2 redisco/containers.py
@@ -217,6 +217,8 @@ def all(self):
def llen(self):
return self.db.llen(self.key)
+ __len__ = llen
+
def __getitem__(self, index):
if isinstance(index, int):
return self.lindex(index)

0 comments on commit a3aae27

Please sign in to comment.