Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:error': 0.03; 'subject:not': 0.03; 'string': 0.09; 'immutable': 0.09; 'python': 0.11; 'ids.': 0.16; 'skip:{ 40': 0.16; 'subject:key': 0.16; 'subject:when': 0.16; 'error': 0.23; '+91': 0.24; 'skip:{ 20': 0.24; 'define': 0.26; 'wondering': 0.29; 'message- id:@mail.gmail.com': 0.30; 'reply.': 0.31; 'something': 0.35; 'received:google.com': 0.35; 'returning': 0.36; 'hi,': 0.36; 'sometimes': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'email addr:gmail.com': 0.63; 'different': 0.65; 'shares': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=tN0BAwINCvKagPnQeuipxDgV2ECN4EaTYKq179j1u5Q=; b=wWZYId6MKNkJ6unlmR/5YnmymHtcEJ3wngD/ylpRk7rvyN+rDCdUlD16qhgrx7oHsz bjEy5kql9izb2e8h244OhdF72DpjfWn1oHgpgVcf3NJvfESrsvcG0GECKtibnZP3XxiR ILa/WkoT0klLr4q+lx+ylIypjVQVFuirelj5etFo7/Bq4val2KZfv8JJEj6HFv330eAJ 6S25YEEd/VsPyC4HM/PmMGusvLNUpxlbDdg4M9M9SezvGSvsHM2kfIVsC2FtIUBLeiXB 5FkDJWMlZx4lm4GISRzsMepJiscRfoZEpJT85OQn63EE23oXMNPQPmlPieHSZv4C96C/ S++A== X-Received: by 10.229.226.135 with SMTP id iw7mr17203206qcb.13.1406805904594; Thu, 31 Jul 2014 04:25:04 -0700 (PDT) MIME-Version: 1.0 From: Dilu Sasidharan Date: Thu, 31 Jul 2014 16:54:44 +0530 Subject: Dict when defining not returning multi value key error To: python-list@python.org Content-Type: multipart/alternative; boundary=001a1134aa82361d7504ff7b86e1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 59 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1406805913 news.xs4all.nl 2882 [2001:888:2000:d::a6]:57418 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:75409 --001a1134aa82361d7504ff7b86e1 Content-Type: text/plain; charset=UTF-8 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 * *+91 - 9483 6389 07* *+91 - 9495 633 275 * --001a1134aa82361d7504ff7b86e1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

I am wonder= ing why the dictionary in python not returning multi value key error when i= define something like

p =3D {'k':"value0",&= #39;k':"value1"}

key is string immutable and sometimes shares same id.

also if the key is immutable and have different ids.
<= br>
like

p =3D {'1':"value0",'1.0':&q= uot;value1"}

Please reply.

Regards,

Dilu Sasidharan
dilu.seven@gma= il.com
+91= - 9483 6389 07
+91 - 9495 633 275
--001a1134aa82361d7504ff7b86e1--