You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ language runtime. The main focus is on user-observable behavior of the engine.
6
6
## Version 24.1.0
7
7
* Update to Python 3.11.7
8
8
* We now provide intrinsified `_pickle` module also in the community version.
9
+
*`polyglot.eval` now raises more meaningful exceptions. Unavaliable languages raise `ValueError`. Exceptions from the polyglot language are raised directly as interop objects (typed as `polyglot.ForeignException`). The shortcut for executing python files without specifying language has been removed, use regular `eval` for executing Python code.
9
10
10
11
## Version 24.0.0
11
12
* We now provide a collection of recipes in the form of GitHub Actions to build popular native extensions on GraalPy. These provide a reproducible way for the community to build native extensions for GraalPy with the correct dependencies. See scripts/wheelbuilder/README.md for details.
Copy file name to clipboardExpand all lines: graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/PolyglotModuleBuiltins.java
Copy file name to clipboardExpand all lines: graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/ErrorMessages.java
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -586,8 +586,9 @@ public abstract class ErrorMessages {
586
586
publicstaticfinalTruffleStringPACKED_IP_WRONG_LENGTH = tsLiteral("packed IP wrong length for %s");
587
587
publicstaticfinalTruffleStringPATTERNS_MAY_ONLY_MATCH_LITERALS_AND_ATTRIBUTE_LOOKUPS = tsLiteral("patterns may only match literals and attribute lookups");
588
588
publicstaticfinalTruffleStringPOLYGLOT_ACCESS_NOT_ALLOWED = tsLiteral("polyglot access is not allowed");
589
-
publicstaticfinalTruffleStringPOLYGLOT_EVAL_MUST_PASS_STRINGS = tsLiteral("polyglot.eval must pass strings as either 'path' or a 'string' keyword");
590
-
publicstaticfinalTruffleStringPOLYGLOT_EVAL_WITH_STRING_MUST_PASS_LANG = tsLiteral("polyglot.eval with a string argument must pass a language or mime-type");
589
+
publicstaticfinalTruffleStringPOLYGLOT_ACCESS_NOT_ALLOWED_FOR_LANGUAGE_S = tsLiteral("polyglot access is not allowed for language '%s'");
590
+
publicstaticfinalTruffleStringPOLYGLOT_EVAL_MUST_PASS_STRING_OR_PATH = tsLiteral("polyglot.eval() must pass either 'path' or 'string' keyword argument");
591
+
publicstaticfinalTruffleStringPOLYGLOT_EVAL_MUST_PASS_LANG = tsLiteral("polyglot.eval() must pass 'language' keyword argument");
591
592
publicstaticfinalTruffleStringPOP_FROM_EMPTY_SET = tsLiteral("pop from an emtpy set");
592
593
publicstaticfinalTruffleStringPOP_INDEX_OUT_OF_RANGE = tsLiteral("pop index out of range");
593
594
publicstaticfinalTruffleStringPOSITION_D_FROM_ERROR_HANDLER_OUT_OF_BOUNDS = tsLiteral("position %d from error handler out of bounds");
@@ -782,7 +783,7 @@ public abstract class ErrorMessages {
782
783
publicstaticfinalTruffleStringX_NOT_IN_TUPLE = tsLiteral("tuple.index(x): x not in tuple");
783
784
publicstaticfinalTruffleStringS_IS_AN_INVALID_ARG_FOR_S = tsLiteral("'%s' is an invalid keyword argument for %s");
784
785
publicstaticfinalTruffleStringYOU_MAY_SPECIFY_EITHER_OR_BUT_NOT_BOTH = tsLiteral("%s: you may specify either '%s' or '%s' but not both");
785
-
publicstaticfinalTruffleStringACCESS_TO_INTERNAL_LANG_NOT_PERMITTED = tsLiteral("access to internal language %s is not permitted");
786
+
publicstaticfinalTruffleStringPOLYGLOT_LANGUAGE_S_NOT_FOUND = tsLiteral("polyglot language '%s' not found");
786
787
publicstaticfinalTruffleStringPOW_BASE_NOT_INVERTIBLE = tsLiteral("base is not invertible for the given modulus");
787
788
publicstaticfinalTruffleStringPOW_ZERO_CANNOT_RAISE_TO_NEGATIVE_POWER = tsLiteral("0.0 cannot be raised to a negative power");
788
789
publicstaticfinalTruffleStringS_ALIGNMENT_FLAG_NOT_ALLOWED_FOR_COMPLEX_FMT = tsLiteral("'%c' alignment flag is not allowed in complex format specifier");
Copy file name to clipboardExpand all lines: graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/function/BuiltinFunctionRootNode.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -317,7 +317,7 @@ public boolean isCloningAllowed() {
0 commit comments