01: package org.python.core;
02:
03: /**
04: *
05: * @deprecated Java1 no longer supported.
06: *
07: */
08: public class IdImpl1 extends IdImpl {
09:
10: public long id(PyObject o) {
11: if (o instanceof PyJavaInstance) {
12: return System
13: .identityHashCode(((PyJavaInstance) o).javaProxy);
14: } else {
15: return System.identityHashCode(o);
16: }
17: }
18:
19: public String idstr(PyObject o) {
20: return Long.toString(id(o));
21: }
22:
23: public long java_obj_id(Object o) {
24: return System.identityHashCode(o);
25: }
26:
27: }
|