[pypy-svn] r69547 - pypy/branch/stringbuilder/pypy/interpreter

fijal at codespeak.net fijal at codespeak.net
Mon Nov 23 12:57:30 CET 2009


Author: fijal
Date: Mon Nov 23 12:57:29 2009
New Revision: 69547

Modified:
   pypy/branch/stringbuilder/pypy/interpreter/baseobjspace.py
Log:
kill expected_length argument to listview and fixedview


Modified: pypy/branch/stringbuilder/pypy/interpreter/baseobjspace.py
==============================================================================
--- pypy/branch/stringbuilder/pypy/interpreter/baseobjspace.py	(original)
+++ pypy/branch/stringbuilder/pypy/interpreter/baseobjspace.py	Mon Nov 23 12:57:29 2009
@@ -668,16 +668,15 @@
                                    (i, plural))
         return items
 
-    def fixedview(self, w_iterable, expected_length=-1):
+    def fixedview(self, w_iterable):
         """ A fixed list view of w_iterable. Don't modify the result
         """
-        return make_sure_not_resized(self.unpackiterable(w_iterable,
-                                                         expected_length)[:])
+        return make_sure_not_resized(self.unpackiterable(w_iterable)[:])
 
-    def listview(self, w_iterable, expected_length=-1):
+    def listview(self, w_iterable):
         """ A non-fixed view of w_iterable. Don't modify the result
         """
-        return self.unpackiterable(w_iterable, expected_length)
+        return self.unpackiterable(w_iterable)
 
     def exception_match(self, w_exc_type, w_check_class):
         """Checks if the given exception type matches 'w_check_class'."""



More information about the Pypy-commit mailing list