File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/object Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 82
82
import com .oracle .graal .python .builtins .objects .PNone ;
83
83
import com .oracle .graal .python .builtins .objects .PNotImplemented ;
84
84
import com .oracle .graal .python .builtins .objects .bytes .PBytes ;
85
+ import com .oracle .graal .python .builtins .objects .cell .PCell ;
85
86
import com .oracle .graal .python .builtins .objects .cext .PythonAbstractNativeObject ;
86
87
import com .oracle .graal .python .builtins .objects .cext .PythonNativeVoidPtr ;
87
88
import com .oracle .graal .python .builtins .objects .cext .capi .CExtNodes ;
@@ -369,6 +370,11 @@ Object id(PythonNativeVoidPtr self) {
369
370
return self .getNativePointer ();
370
371
}
371
372
373
+ @ Specialization
374
+ Object id (PCell self ) {
375
+ return PythonContext .get (this ).getNextObjectId (self );
376
+ }
377
+
372
378
protected static boolean isDefaultCase (PythonObject object ) {
373
379
return !(object instanceof PBytes ||
374
380
object instanceof PFrozenSet ||
You can’t perform that action at this time.
0 commit comments