@@ -152,7 +152,7 @@ public Object setDefault(PDict dict, Object key, Object defaultValue,
152
152
// pop(key[, default])
153
153
@ Builtin (name = "pop" , minNumOfPositionalArgs = 2 , maxNumOfPositionalArgs = 3 )
154
154
@ GenerateNodeFactory
155
- public abstract static class PopNode extends PythonBuiltinNode {
155
+ public abstract static class PopNode extends PythonTernaryBuiltinNode {
156
156
@ Child private HashingStorageNodes .GetItemNode getItemNode ;
157
157
@ Child private HashingStorageNodes .DelItemNode delItemNode ;
158
158
@@ -193,7 +193,7 @@ public Object popDefault(PDict dict, Object key, Object defaultValue) {
193
193
// popitem()
194
194
@ Builtin (name = "popitem" , fixedNumOfPositionalArgs = 1 )
195
195
@ GenerateNodeFactory
196
- public abstract static class PopItemNode extends PythonBuiltinNode {
196
+ public abstract static class PopItemNode extends PythonUnaryBuiltinNode {
197
197
198
198
@ Specialization
199
199
@ TruffleBoundary
@@ -233,7 +233,7 @@ public PDictView items(PDict self) {
233
233
// get(key[, default])
234
234
@ Builtin (name = "get" , minNumOfPositionalArgs = 2 , maxNumOfPositionalArgs = 3 )
235
235
@ GenerateNodeFactory
236
- public abstract static class GetNode extends PythonBuiltinNode {
236
+ public abstract static class GetNode extends PythonTernaryBuiltinNode {
237
237
@ Child private HashingStorageNodes .GetItemNode getItemNode ;
238
238
239
239
@ Specialization (guards = "!isNoValue(defaultValue)" )
@@ -274,7 +274,7 @@ Object getItem(PDict self, Object key,
274
274
275
275
@ Builtin (name = __MISSING__ , fixedNumOfPositionalArgs = 2 )
276
276
@ GenerateNodeFactory
277
- public abstract static class MissingNode extends PythonBuiltinNode {
277
+ public abstract static class MissingNode extends PythonBinaryBuiltinNode {
278
278
@ SuppressWarnings ("unused" )
279
279
@ Specialization
280
280
Object run (Object self , PString key ) {
@@ -312,7 +312,7 @@ Object run(PDict self, Object key, Object value,
312
312
313
313
@ Builtin (name = __DELITEM__ , fixedNumOfPositionalArgs = 2 )
314
314
@ GenerateNodeFactory
315
- public abstract static class DelItemNode extends PythonBuiltinNode {
315
+ public abstract static class DelItemNode extends PythonBinaryBuiltinNode {
316
316
@ Specialization
317
317
Object run (PDict self , Object key ,
318
318
@ Cached ("create()" ) HashingStorageNodes .DelItemNode delItemNode ) {
@@ -334,7 +334,7 @@ Object run(PDict self) {
334
334
335
335
@ Builtin (name = __EQ__ , fixedNumOfPositionalArgs = 2 )
336
336
@ GenerateNodeFactory
337
- public abstract static class EqNode extends PythonBuiltinNode {
337
+ public abstract static class EqNode extends PythonBinaryBuiltinNode {
338
338
@ Specialization
339
339
Object doDictDict (PDict self , PDict other ,
340
340
@ Cached ("create()" ) HashingStorageNodes .EqualsNode equalsNode ) {
@@ -350,7 +350,7 @@ PNotImplemented doGeneric(Object self, Object other) {
350
350
351
351
@ Builtin (name = __CONTAINS__ , fixedNumOfPositionalArgs = 2 )
352
352
@ GenerateNodeFactory
353
- public abstract static class ContainsNode extends PythonBuiltinNode {
353
+ public abstract static class ContainsNode extends PythonBinaryBuiltinNode {
354
354
@ Child private HashingStorageNodes .ContainsKeyNode containsKeyNode ;
355
355
356
356
@ SuppressWarnings ("unused" )
@@ -391,7 +391,7 @@ public int len(PDict self,
391
391
// copy()
392
392
@ Builtin (name = "copy" , fixedNumOfPositionalArgs = 1 )
393
393
@ GenerateNodeFactory
394
- public abstract static class CopyNode extends PythonBuiltinNode {
394
+ public abstract static class CopyNode extends PythonUnaryBuiltinNode {
395
395
396
396
@ Specialization
397
397
public PDict copy (PDict dict ,
@@ -403,7 +403,7 @@ public PDict copy(PDict dict,
403
403
// clear()
404
404
@ Builtin (name = "clear" , fixedNumOfPositionalArgs = 1 )
405
405
@ GenerateNodeFactory
406
- public abstract static class ClearNode extends PythonBuiltinNode {
406
+ public abstract static class ClearNode extends PythonUnaryBuiltinNode {
407
407
408
408
@ Specialization
409
409
public PDict copy (PDict dict ) {
@@ -425,7 +425,7 @@ public PDictView values(PDict self) {
425
425
426
426
@ Builtin (name = __HASH__ , fixedNumOfPositionalArgs = 1 )
427
427
@ GenerateNodeFactory
428
- public abstract static class HashNode extends PythonBuiltinNode {
428
+ public abstract static class HashNode extends PythonUnaryBuiltinNode {
429
429
@ Specialization
430
430
Object doGeneric (Object self ) {
431
431
throw raise (TypeError , "unhashable type: '%p'" , self );
0 commit comments