[pypy-commit] pypy fast_cffi_list_init: add default implementations of these to baseobjspace

antocuni noreply at buildbot.pypy.org
Thu Oct 10 11:39:54 CEST 2013


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: fast_cffi_list_init
Changeset: r67277:60e13a44605f
Date: 2013-10-10 11:39 +0200
http://bitbucket.org/pypy/pypy/changeset/60e13a44605f/

Log:	add default implementations of these to baseobjspace

diff --git a/pypy/interpreter/baseobjspace.py b/pypy/interpreter/baseobjspace.py
--- a/pypy/interpreter/baseobjspace.py
+++ b/pypy/interpreter/baseobjspace.py
@@ -895,6 +895,20 @@
         """
         return None
 
+    def listview_int(self, w_list):
+        """ Return a list of unwrapped int out of a list of int. If the
+        argument is not a list or does not contain only int, return None.
+        May return None anyway.
+        """
+        return None
+
+    def listview_float(self, w_list):
+        """ Return a list of unwrapped float out of a list of float. If the
+        argument is not a list or does not contain only float, return None.
+        May return None anyway.
+        """
+        return None
+
     def view_as_kwargs(self, w_dict):
         """ if w_dict is a kwargs-dict, return two lists, one of unwrapped
         strings and one of wrapped values. otherwise return (None, None)


More information about the pypy-commit mailing list