[pypy-commit] pypy py3.6: Port CPython commit 91108f0: Issue #25210: Change error message of do_richcompare()

amauryfa pypy.commits at gmail.com
Sat Dec 29 21:42:23 EST 2018


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3.6
Changeset: r95537:0f59af55378c
Date: 2018-08-05 17:33 +0200
http://bitbucket.org/pypy/pypy/changeset/0f59af55378c/

Log:	Port CPython commit 91108f0: Issue #25210: Change error message of
	do_richcompare()

diff --git a/pypy/objspace/descroperation.py b/pypy/objspace/descroperation.py
--- a/pypy/objspace/descroperation.py
+++ b/pypy/objspace/descroperation.py
@@ -619,7 +619,8 @@
         #
         # if we arrived here, they are unorderable
         raise oefmt(space.w_TypeError,
-                    "unorderable types: %T %s %T", w_obj1, symbol, w_obj2)
+                    "'%s' not supported between instances of '%T' and '%T'",
+                    symbol, w_obj1, w_obj2)
 
     return func_with_new_name(comparison_impl, 'comparison_%s_impl'%left.strip('_'))
 


More information about the pypy-commit mailing list