[Python-Dev] Re: print "%X" % id(object()) not so nice

Terry Reedy tjreedy at udel.edu
Sat Nov 20 03:53:08 CET 2004


"Terry Reedy" <tjreedy at udel.edu> wrote in message 
news:cnm3lj$9nj$1 at sea.gmane.org...
> ...   return (i < 0) and (max - i) or i
> # only semi-tested because I don't have negatives to test and can't force

whoops, untested negative case should be max + i
(or max-abs(i) as I was thinking)





More information about the Python-Dev mailing list