Skip to content

Commit 2dee99c

Browse files
committed
Fix missing specialization in dict_view.__rsub__
1 parent d8d80f8 commit 2dee99c

File tree

1 file changed

+1
-13
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/dict

1 file changed

+1
-13
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/dict/DictViewBuiltins.java

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -492,19 +492,7 @@ static PBaseSet doItemsView(VirtualFrame frame, PDictItemsView self, PBaseSet ot
492492
}
493493

494494
@Specialization
495-
static PBaseSet doNotIterable(VirtualFrame frame, PDictItemsView self, PDictItemsView other,
496-
@Bind("this") Node inliningTarget,
497-
@Shared("constrSet") @Cached SetNodes.ConstructSetNode constructSetNode,
498-
@Shared("diff") @Cached HashingStorageDiff diffNode,
499-
@Shared @Cached PythonObjectFactory factory) {
500-
PSet selfSet = constructSetNode.executeWith(frame, self);
501-
PSet otherSet = constructSetNode.executeWith(frame, other);
502-
HashingStorage storage = diffNode.execute(frame, inliningTarget, selfSet.getDictStorage(), otherSet.getDictStorage());
503-
return factory.createSet(storage);
504-
}
505-
506-
@Specialization
507-
static PBaseSet doItemsView(VirtualFrame frame, PDictItemsView self, Object other,
495+
static PBaseSet doGeneric(VirtualFrame frame, Object self, Object other,
508496
@Bind("this") Node inliningTarget,
509497
@Shared("constrSet") @Cached SetNodes.ConstructSetNode constructSetNode,
510498
@Shared("diff") @Cached HashingStorageDiff diffNode,

0 commit comments

Comments
 (0)