min and max id numbers

Terry Reedy tjreedy at udel.edu
Fri Dec 5 23:54:59 EST 2003


"r.e.s." <r.s at XXmindspring.com> wrote in message
news:l08Ab.449$_r6.361 at newsread1.news.pas.earthlink.net...
> Just curious ...
>
> 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) ?

You have no control over the id of PyObjects.  id's are mostly for internal
use of the interpreter.

tjr






More information about the Python-list mailing list