|
| 1 | +diff --git a/pythran/pythonic/python/core.hpp b/pythran/pythonic/python/core.hpp |
| 2 | +index 86d2f63..050fe21 100644 |
| 3 | +--- a/pythran/pythonic/python/core.hpp |
| 4 | ++++ b/pythran/pythonic/python/core.hpp |
| 5 | +@@ -50,7 +50,7 @@ PYTHONIC_NS_BEGIN |
| 6 | + namespace python |
| 7 | + { |
| 8 | + |
| 9 | +-#ifdef Py_LIMITED_API |
| 10 | ++#if defined(Py_LIMITED_API) || defined(GRAALVM_PYTHON) |
| 11 | + |
| 12 | + struct ByteHolder { |
| 13 | + PyObject *holder; |
| 14 | +diff --git a/pythran/pythonic/types/str.hpp b/pythran/pythonic/types/str.hpp |
| 15 | +index a7dd51a..09fdd59 100644 |
| 16 | +--- a/pythran/pythonic/types/str.hpp |
| 17 | ++++ b/pythran/pythonic/types/str.hpp |
| 18 | +@@ -732,7 +732,7 @@ namespace std |
| 19 | + }()) |
| 20 | + #else |
| 21 | + #ifndef PyString_Check |
| 22 | +-#define PyString_Check(x) (PyUnicode_Check(x) && PyUnicode_IS_COMPACT_ASCII(x)) |
| 23 | ++#define PyString_Check(x) PyUnicode_Check(x) |
| 24 | + #endif |
| 25 | + #endif |
| 26 | + |
| 27 | +diff --git a/pythran/tables.py b/pythran/tables.py |
| 28 | +index a9f5712..5a0dff2 100644 |
| 29 | +--- a/pythran/tables.py |
| 30 | ++++ b/pythran/tables.py |
| 31 | +@@ -4633,7 +4633,10 @@ def save_arguments(module_name, elements): |
| 32 | + # some function are actually forward function, detect those |
| 33 | + # and accept to use our description instead. |
| 34 | + if looks_like_a_forward_function(spec): |
| 35 | +- assert signature.args.args, "{} require an explicit description".format(elem) |
| 36 | ++ # GraalPy change: we have signatures for more builtins than |
| 37 | ++ # CPython and this trips up on type constructors like `dict` or |
| 38 | ++ # `BaseException`. |
| 39 | ++ # assert signature.args.args, "{} require an explicit description".format(elem) |
| 40 | + continue |
| 41 | + |
| 42 | + args = [ast.Name(arg, ast.Param(), None, None) |
0 commit comments