Author: Armin Rigo <ar...@tunes.org>
Branch: py3.5
Changeset: r89548:c7e665a4d094
Date: 2017-01-13 18:05 +0100
http://bitbucket.org/pypy/pypy/changeset/c7e665a4d094/

Log:    add an XXX hack

diff --git a/lib-python/3/inspect.py b/lib-python/3/inspect.py
--- a/lib-python/3/inspect.py
+++ b/lib-python/3/inspect.py
@@ -2077,6 +2077,8 @@
 
     s = getattr(func, "__text_signature__", None)
     if not s:
+        if func is object:  # XXX PyPy hack until we support __text_signature__
+            return '()'     # in the same cases as CPython
         raise ValueError("no signature found for builtin {!r}".format(func))
 
     return _signature_fromstr(cls, func, s, skip_bound_arg)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to