Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75409
| From | Dilu Sasidharan <dilu.seven@gmail.com> |
|---|---|
| Date | 2014-07-31 16:54 +0530 |
| Subject | Dict when defining not returning multi value key error |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.12462.1406805913.18130.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
Hi,
I am wondering why the dictionary in python not returning multi value key
error when i define something like
p = {'k':"value0",'k':"value1"}
key is string immutable and sometimes shares same id.
also if the key is immutable and have different ids.
like
p = {'1':"value0",'1.0':"value1"}
Please reply.
Regards,
*Dilu Sasidharan dilu.seven@gmail.com <dilu.seven@gmail.com>*
*+91 - 9483 6389 07*
*+91 - 9495 633 275 *
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Dict when defining not returning multi value key error Dilu Sasidharan <dilu.seven@gmail.com> - 2014-07-31 16:54 +0530
csiph-web