[pypy-commit] pypy list-strategies: renamed and commented cached empty list
l.diekmann
noreply at buildbot.pypy.org
Fri Sep 23 13:15:34 CEST 2011
Author: Lukas Diekmann <lukas.diekmann at uni-duesseldorf.de>
Branch: list-strategies
Changeset: r47551:f1ac9d3d76af
Date: 2011-09-14 13:14 +0200
http://bitbucket.org/pypy/pypy/changeset/f1ac9d3d76af/
Log: renamed and commented cached empty list
diff --git a/pypy/objspace/std/listobject.py b/pypy/objspace/std/listobject.py
--- a/pypy/objspace/std/listobject.py
+++ b/pypy/objspace/std/listobject.py
@@ -243,8 +243,8 @@
def __init__(self, space):
ListStrategy.__init__(self, space)
- # XXX rename to cached_emptylist_w and add a comment what it's used for
- self.emptylist = []
+ # cache an empty list that is used whenever getitems is called (i.e. sorting)
+ self.cached_emptylist_w = []
def init_from_list_w(self, w_list, list_w):
assert len(list_w) == 0
More information about the pypy-commit
mailing list