min and max id numbers

Paul Rubin http
Fri Dec 5 17:59:24 EST 2003


"r.e.s." <r.s at XXmindspring.com> writes:
> On a given machine, is it possible to create objects LO and HI, 
> such that for all objects x,  id(LO) <= id(x) <= id(HI) ?

It may be possible under narrow circumstances but you really can't
ever rely on it.  You're better off writing a C extension that tells
you the endpoints of heap memory.  




More information about the Python-list mailing list