Author: Lukas Diekmann <[email protected]>
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:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to