[pypy-commit] pypy remove-remaining-smm: Make sure float comparison methods get different names.
Manuel Jacob
noreply at buildbot.pypy.org
Mon Feb 24 21:56:00 CET 2014
Author: Manuel Jacob
Branch: remove-remaining-smm
Changeset: r69360:72388bf30fed
Date: 2014-02-24 21:00 +0100
http://bitbucket.org/pypy/pypy/changeset/72388bf30fed/
Log: Make sure float comparison methods get different names.
diff --git a/pypy/objspace/std/floatobject.py b/pypy/objspace/std/floatobject.py
--- a/pypy/objspace/std/floatobject.py
+++ b/pypy/objspace/std/floatobject.py
@@ -17,6 +17,7 @@
isinf, isnan, isfinite, INFINITY, NAN, copysign, formatd,
DTSF_ADD_DOT_0, DTSF_STR_PRECISION, float_as_rbigint_ratio)
from rpython.rlib.rstring import ParseStringError
+from rpython.tool.sourcetools import func_with_new_name
from rpython.rlib.unroll import unrolling_iterable
@@ -114,7 +115,7 @@
if space.isinstance_w(w_other, space.w_long):
return space.newbool(do_compare_bigint(self.floatval, w_other.num))
return space.w_NotImplemented
- return _compare
+ return func_with_new_name(_compare, 'descr_' + opname)
class W_FloatObject(W_Root):
More information about the pypy-commit
mailing list