Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #71031
| From | Ned Batchelder <ned@nedbatchelder.com> |
|---|---|
| Subject | Re: Normal dict behavior? |
| Date | 2014-05-07 11:20 -0400 |
| References | <18f61e5d-f47b-4373-a835-67c6f20ef3d1@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.9738.1399476055.18130.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Normal dict behavior? antoine <boolegue@gmail.com> - 2014-05-07 08:06 -0700 Re: Normal dict behavior? Ned Batchelder <ned@nedbatchelder.com> - 2014-05-07 11:20 -0400 Re: Normal dict behavior? Chris Angelico <rosuav@gmail.com> - 2014-05-08 01:22 +1000 Re: Normal dict behavior? Christian Heimes <christian@python.org> - 2014-05-07 17:34 +0200 Re: Normal dict behavior? Chris Angelico <rosuav@gmail.com> - 2014-05-08 01:38 +1000
csiph-web