[pypy-commit] pypy default: Fix comment after looking more in the CPython 3.x situation
arigo
pypy.commits at gmail.com
Fri Jan 10 07:28:55 EST 2020
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r98509:038f81a04a45
Date: 2020-01-10 13:16 +0100
http://bitbucket.org/pypy/pypy/changeset/038f81a04a45/
Log: Fix comment after looking more in the CPython 3.x situation
diff --git a/pypy/module/__builtin__/abstractinst.py b/pypy/module/__builtin__/abstractinst.py
--- a/pypy/module/__builtin__/abstractinst.py
+++ b/pypy/module/__builtin__/abstractinst.py
@@ -228,9 +228,10 @@
return False
#
# The rest is the rare slow case. Use the general logic of issubclass()
- # (issue #3149). CPython 3.x doesn't do that, but there is a many-years
- # issue report: https://bugs.python.org/issue12029. In PyPy3 we try to
- # fix the issue with the same code, as long as no CPython3 test fails.
+ # (issue #3149). CPython 3.x doesn't do that (but there is a
+ # many-years issue report: https://bugs.python.org/issue12029), and
+ # there are probably tests, so we won't call abstract_issubclass_w()
+ # either in PyPy3.
return abstract_issubclass_w(space, w_cls1, w_cls2, True)
# ____________________________________________________________
More information about the pypy-commit
mailing list