Initialise dictionary of dictionary

Tim Chase python.list at tim.thechases.com
Thu Jan 23 10:41:05 EST 2014


On 2014-01-23 10:34, Dave Angel wrote:
> Unsure of what the floats have to do with it. Perhaps you meant
>  float KEYS. 

using floats for keys can be dangerous, as small rounding errors in
math can produce keys different enough that they're not found by an
exact-match lookup.  But yeah, the original problem specification was
rather wanting in detail.  I tried my best at interpreting it, for
whatever that may be worth.

-tkc






More information about the Python-list mailing list