[Python-Dev] sizeof(long) != sizeof(void*)

Martin v. Löwis martin at v.loewis.de
Thu Aug 7 07:24:05 EDT 2003

Samuele Pedroni <pedronis at bluewin.ch> writes:

> at each time objects have all different addresses, which does not mean
> that an object will not have the same address that some other object, even
> still alive, had at some time in the past. 

So yes, you cannot use addresses.

> why do you think it certainly have to.

Because, in jvmpi.h, I find this:

struct _jobjectID;
typedef struct _jobjectID * jobjectID;       /* type of object ids */ 
typedef struct {
    jobjectID (*jobject2jobjectID)(jobject jobj);
} JVMPI_Interface;


More information about the Python-Dev mailing list