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 78
78
import com .oracle .graal .python .builtins .objects .PNotImplemented ;
79
79
import com .oracle .graal .python .builtins .objects .bytes .PBytes ;
80
80
import com .oracle .graal .python .builtins .objects .cext .PythonAbstractNativeObject ;
81
+ import com .oracle .graal .python .builtins .objects .cext .PythonNativeVoidPtr ;
81
82
import com .oracle .graal .python .builtins .objects .common .EconomicMapStorage ;
82
83
import com .oracle .graal .python .builtins .objects .common .HashingCollectionNodes ;
83
84
import com .oracle .graal .python .builtins .objects .common .HashingStorage ;
@@ -342,6 +343,11 @@ Object id(PString self,
342
343
return getObjectIdNode .execute (self );
343
344
}
344
345
346
+ @ Specialization
347
+ Object id (PythonNativeVoidPtr self ) {
348
+ return self .getNativePointer ();
349
+ }
350
+
345
351
protected static boolean isDefaultCase (PythonObject object ) {
346
352
return !(object instanceof PFloat || object instanceof PInt || object instanceof PString || object instanceof PTuple || object instanceof PFrozenSet ||
347
353
object instanceof PythonBuiltinClass );
You can’t perform that action at this time.
0 commit comments