Skip to content

Commit 0e7e292

Browse files
committed
Give foreign objects a foreign class composed of their interop traits
* Done: isNull() -> NoneType hasArrayElements() -> list hasHashEntries() -> dict isException() -> BaseException * See the full mapping in GetForeignObjectClassNode.Trait. * Test priority for attribute lookup on foreign objects.
1 parent 33bb4df commit 0e7e292

File tree

74 files changed

+2678
-1491
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+2678
-1491
lines changed

graalpython/com.oracle.graal.python.test.integration/src/com/oracle/graal/python/test/integration/interop/JavaInteropTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ public void javaStringsAndPythonStrings() throws IOException {
584584
Map<String, String> source = Map.of("source", "foo");
585585
context.getBindings("python").getMember("enrich").execute(source);
586586
assertEquals("" +
587-
"<class 'foreign'>\n" +
587+
"<class 'polyglot.ForeignDict'>\n" +
588588
"True\n" +
589589
"True\n", out.toString("UTF-8"));
590590
}

0 commit comments

Comments
 (0)