Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'arguments': 0.05; 'perl,': 0.05; 'python:': 0.05; 'subject:Python': 0.06; 'complaining': 0.07; 'constructor': 0.07; 'defines': 0.07; 'linear': 0.07; 'python': 0.08; 'dict': 0.09; 'supported,': 0.09; 'pm,': 0.10; '>>>': 0.12; 'received:209.85.214.174': 0.14; 'received:mail- iw0-f174.google.com': 0.14; 'wrote:': 0.14; "'not": 0.16; '(key,': 0.16; 'outputs': 0.16; 'pairs:': 0.16; 'perception.': 0.16; 'mon,': 0.17; 'obviously': 0.17; 'perl': 0.19; 'guess': 0.19; 'header:In-Reply-To:1': 0.21; 'keys': 0.23; 'moreover,': 0.23; 'somehow': 0.23; 'skip:[ 10': 0.26; 'example': 0.27; 'message- id:@mail.gmail.com': 0.28; 'received:209.85.214': 0.28; 'subject:?': 0.29; 'instead': 0.29; 'turned': 0.30; 'value)': 0.30; 'print': 0.31; 'yet': 0.32; 'clearly': 0.32; 'does': 0.33; 'to:addr:python-list': 0.33; 'list': 0.33; 'daniel': 0.34; 'defining': 0.35; 'here,': 0.35; 'considered': 0.36; 'received:google.com': 0.37; 'received:209.85': 0.37; 'comparing': 0.37; 'ways': 0.37; 'another': 0.37; 'subject:: ': 0.38; 'received:209': 0.39; 'to:addr:python.org': 0.39; 'best': 0.60; 'your': 0.60; 'making': 0.67; 'here.': 0.69; 'container': 0.73; '2],': 0.84; 'expects': 0.84; 'subject:Why': 0.84; 'subject:choose': 0.84; 'subject:its': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=28oyJZ1JxgQ9mPUuwnjcV2VTVIpeJRWN4MJpfEFmt5E=; b=QmNXvcwQ0QrO6e1G9WGT9KSojaI0014MFhNcHkwSLX7jrDmBx4RB9TUBP+docLzLqb sLKP5GPak6/bBEHe3ZEH5KZGmqo84M583aQyNZ+qABkBQLNwNaSQDfMoyYH2DhTp45TL IKXSf7+Nm4VsKgk10V7bIxhiE7041PXqLqWh8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=rH5PE7nkDaB12a8a5W50frzpTNURozdmCpoKhRVI6VdyRwyg559osmuuMJkp9GPLjx TnOUpYidis02Cpc+J88awyew5PHCFBAgD8bXq/jZ8GsoWCAmDdYTxRPdobKBI2KPjMA+ wfSkKxRjncL1Ri86EQpO1hF7/1kmEpsUaZsb0= MIME-Version: 1.0 In-Reply-To: <57C0AB91B42743E89456ACCC8751CF78@octavian> References: <80d59383-36a3-4744-85c4-1a0577f1d3a6@dr5g2000vbb.googlegroups.com> <9CDC4B2CD1F445E994119A50F65155DF@teddy> <12225671E9654FECB49613D915FAEC19@teddy> <21A740B7AC6644248476DFADDF726C73@octavian> <629DAC3611EA49B0A36BCF70151CDE2F@octavian> <57C0AB91B42743E89456ACCC8751CF78@octavian> Date: Tue, 24 May 2011 14:34:52 +1100 Subject: Re: Why did Quora choose Python for its development? From: Daniel Kluev To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 35 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1306208096 news.xs4all.nl 49179 [::ffff:82.94.164.166]:44021 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:6110 On Mon, May 23, 2011 at 10:10 PM, Octavian Rasnita wrote: > is not so nice as > > $d = @a; It is 'not so nice' only in your perception. Python clearly defines dict as container of (key, value) pairs, and therefore its constructor expects such pairs. Adding unjustified arbitrary ways to guess such pairs out of linear list is exactly what is being bashed here. Is is considered to be wrong and bad. Moreover, you are comparing apples to oranges here, and then complaining that apples somehow turned out to be not oranges. If we take python way of defining dicts and check it in perl, we find that it is not supported, so obviously perl is non-intuitive and does not support clear and easy way of defining hashes from list of key-value pairs: @l = ([1, 2], [3, 4],); %d = @l; for $k ( keys %d ) { print "$k\n"; } which outputs single ARRAY(0x804e158) instead of proper 1, 3, as it does in python: >>> dict([[1,2], [3,4]]).keys() [1, 3] This is yet another example that you are just trolling here, making silly and unbacked claims, and ignoring any valid arguments you receive. -- With best regards, Daniel Kluev