[pypy-commit] pypy int_w-refactor: gateway_int_w now has the very same semantics as int_w
antocuni
noreply at buildbot.pypy.org
Tue Feb 25 18:06:05 CET 2014
Author: Antonio Cuni <anto.cuni at gmail.com>
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))
More information about the pypy-commit
mailing list