Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #75409 > unrolled thread

Dict when defining not returning multi value key error

Started byDilu Sasidharan <dilu.seven@gmail.com>
First post2014-07-31 16:54 +0530
Last post2014-07-31 16:54 +0530
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Dict when defining not returning multi value key error Dilu Sasidharan <dilu.seven@gmail.com> - 2014-07-31 16:54 +0530

#75409 — Dict when defining not returning multi value key error

FromDilu Sasidharan <dilu.seven@gmail.com>
Date2014-07-31 16:54 +0530
SubjectDict when defining not returning multi value key error
Message-ID<mailman.12462.1406805913.18130.python-list@python.org>

[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 *

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web