Floats as keys in dict

Brian Elmegaard brian at rkspeed-rugby.dk
Thu Aug 2 03:59:26 EDT 2007


greg <greg at cosc.canterbury.ac.nz> writes:

> Be careful with this. If you have two values that are
> very close together, but on different sides of a rounding
> boundary, they will end up as distinct keys even though
> they "should" be regarded as equal.

I don't think this is a big problem. It will only give me one more
node. 

Wouldn't the same be possible if I use bisect?

-- 
Brian (remove the sport for mail)
http://www.et.web.mek.dtu.dk/Staff/be/be.html
http://www.rugbyklubben-speed.dk



More information about the Python-list mailing list