min and max id numbers

Terry Reedy tjreedy at udel.edu
Sat Dec 6 05:54:59 CET 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