Skip to content

Commit 340924b

Browse files
committed
Fix: foreign objects just with members are not iterable.
1 parent 1ce01ce commit 340924b

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/foreign/TruffleObjectBuiltins.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -592,18 +592,6 @@ Object doBoxedString(Object iterable,
592592
throw raise(TypeError, "'foreign' object is not iterable");
593593
}
594594

595-
@Specialization(guards = "lib.hasMembers(mapping)")
596-
Object doForeignMapping(Object mapping,
597-
@CachedLibrary(limit = "3") InteropLibrary lib) {
598-
try {
599-
Object keysObj = lib.getMembers(mapping);
600-
return doForeignArray(keysObj, lib);
601-
} catch (UnsupportedMessageException e) {
602-
// fall through
603-
}
604-
throw raise(TypeError, "'foreign' object is not iterable");
605-
}
606-
607595
@Fallback
608596
PNone doGeneric(@SuppressWarnings("unused") Object o) {
609597
throw raise(TypeError, "'foreign' object is not iterable");

0 commit comments

Comments
 (0)