Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.01; 'perl,': 0.05; 'suppose': 0.05; 'subject:Python': 0.06; 'python': 0.08; 'dict': 0.09; 'syntax.': 0.09; 'ugly': 0.09; 'wrong,': 0.09; 'pm,': 0.10; 'syntax': 0.11; 'received:209.85.214.174': 0.14; 'received:mail-iw0-f174.google.com': 0.14; 'wrote:': 0.14; 'meaningless': 0.16; 'converting': 0.16; 'tue,': 0.17; 'perl': 0.19; 'header:In-Reply-To:1': 0.21; 'code.': 0.22; 'produces': 0.23; 'message-id:@mail.gmail.com': 0.28; 'received:209.85.214': 0.28; 'subject:?': 0.29; '24,': 0.29; 'array': 0.30; 'value.': 0.32; 'to:addr:python-list': 0.33; 'daniel': 0.34; 'showing': 0.34; 'received:google.com': 0.37; 'received:209.85': 0.37; 'comparing': 0.37; 'but': 0.38; 'subject:: ': 0.38; 'should': 0.39; 'received:209': 0.39; 'to:addr:python.org': 0.39; 'more': 0.60; 'best': 0.60; 'your': 0.60; '5:00': 0.84; 'shortness': 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=KMOxVWvHllB2heB8VhT4Qqx6P+kE4PK4Ef6kKaCXBV0=; b=HSUElYm0hXjv5Zc/g8pbpsEMZ8JyY1tnQrbOUM/F9zpO256f/wx8vg9aJ6oavU/0d/ jSLSsWhlqQ/ZpuJTAhO8N7oXKN0nfzay6FnwtnjzCHeIdAFep7AjPPTsU1tEJBl4l6/q aCTWU2A0K+wHTjVzGeXxbxTdiKsl+VezYKvlo= 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=NKu0rz61P2juTjdJZ1sOZiEcPAM9l+qmXE8CHOvoFc9zjarAgpnUDlnmvICQ0vmjMb KTlnF6Cx6XSqDiLD0HIhg0QwcbbbxAGeyQIOaPD47KL2MaHk065LCj7cuK1jC0uM+pmx GdQkAhb4W76UA1Jd+ns6otNa3rcrnrBq+7CBU= MIME-Version: 1.0 In-Reply-To: <2C6966D5AB6541E3BCE920FE7883A05B@octavian> References: <80d59383-36a3-4744-85c4-1a0577f1d3a6@dr5g2000vbb.googlegroups.com> <9CDC4B2CD1F445E994119A50F65155DF@teddy> <12225671E9654FECB49613D915FAEC19@teddy> <21A740B7AC6644248476DFADDF726C73@octavian> <629DAC3611EA49B0A36BCF70151CDE2F@octavian> <57C0AB91B42743E89456ACCC8751CF78@octavian> <2C6966D5AB6541E3BCE920FE7883A05B@octavian> Date: Tue, 24 May 2011 19:55:40 +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: 17 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1306227343 news.xs4all.nl 49175 [::ffff:82.94.164.166]:54280 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:6124 On Tue, May 24, 2011 at 5:00 PM, Octavian Rasnita wrote: > And you are telling that in Perl should be used an even more complicated and > ugly syntax just for beeing the same as in Python just for showing that I am > wrong, but I was comparing just the shortness and cleraness of the code. > > So, again, in Perl is just: > > %d = @l; Once again. Suppose we have array of key-value pairs (two-dimensional array), `l`. In python, converting it to dict is as simple as d = dict(l). In perl, %d = @l; produces meaningless value. Following your logic, this means that perl has ugly syntax. -- With best regards, Daniel Kluev