Author: Antonio Cuni <[email protected]>
Branch: int_w-refactor
Changeset: r69433:970e75bb2953
Date: 2014-02-25 17:56 +0100
http://bitbucket.org/pypy/pypy/changeset/970e75bb2953/
Log: gateway_int_w now has the very same semantics as int_w
diff --git a/pypy/interpreter/baseobjspace.py b/pypy/interpreter/baseobjspace.py
--- a/pypy/interpreter/baseobjspace.py
+++ b/pypy/interpreter/baseobjspace.py
@@ -1420,11 +1420,7 @@
return w_obj.ord(self)
# This is all interface for gateway.py.
- def gateway_int_w(self, w_obj):
- if self.isinstance_w(w_obj, self.w_float):
- raise OperationError(self.w_TypeError,
- self.wrap("integer argument expected, got float"))
- return self.int_w(self.int(w_obj))
+ gateway_int_w = int_w
def gateway_float_w(self, w_obj):
return self.float_w(self.float(w_obj))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit