[pypy-commit] pypy list-strategies: use none_value
l.diekmann
noreply at buildbot.pypy.org
Fri Sep 23 13:15:01 CEST 2011
Author: Lukas Diekmann <lukas.diekmann at uni-duesseldorf.de>
Branch: list-strategies
Changeset: r47531:65ea48d1a05a
Date: 2011-09-02 12:53 +0200
http://bitbucket.org/pypy/pypy/changeset/65ea48d1a05a/
Log: use none_value
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
@@ -530,7 +530,7 @@
storage = self.cast_to_void_star(sublist)
return W_ListObject.from_storage_and_strategy(self.space, storage, self)
else:
- subitems_w = [-1] * length
+ subitems_w = [self._none_value] * length
l = self.cast_from_void_star(w_list.lstorage)
for i in range(length):
try:
More information about the pypy-commit
mailing list