Normal dict behavior?

Ned Batchelder ned at nedbatchelder.com
Wed May 7 11:20:33 EDT 2014


On 5/7/14 11:06 AM, antoine wrote:
> Hi,
>
> Python 2.7.5 (default, Nov 20 2013, 14:20:58)
> [GCC 4.7.1] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> {0.: None, 0:None}
> {0.0: None}
>
> The second item disappeared!
>
> Why?
> Is it normal?
>

Because 0 == 0.0

-- 
Ned Batchelder, http://nedbatchelder.com




More information about the Python-list mailing list