Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python,': 0.01; 'preferably': 0.03; 'subject:Python': 0.06; 'dictionary': 0.07; 'replied': 0.07; 'something,': 0.07; 'python': 0.08; 'omit': 0.09; 'programmers.': 0.09; 'am,': 0.14; 'wrote:': 0.14; '"terry': 0.16; 'disagree.': 0.16; 'reedy"': 0.16; 'way"': 0.16; 'operations,': 0.16; 'language': 0.18; 'discussion': 0.19; 'perl': 0.19; 'practices,': 0.19; 'command': 0.19; 'right.': 0.22; 'incorrect': 0.23; 'received:209.85.161.46': 0.23; 'received:mail- fx0-f46.google.com': 0.23; 'creating': 0.24; 'statement': 0.26; 'received:209.85.161': 0.26; 'example': 0.27; 'subject:?': 0.29; 'opposed': 0.29; 'fact': 0.30; 'array': 0.30; 'module': 0.30; 'agreed.': 0.30; 'operation.': 0.30; 'x-mailer:microsoft outlook express 6.00.2900.5931': 0.30; 'to:addr:python-list': 0.33; 'too': 0.33; 'things': 0.33; 'follows:': 0.34; 'there': 0.35; 'latter': 0.35; 'using': 0.35; 'from:': 0.36; 'received:google.com': 0.37; 'received:209.85': 0.37; 'ways': 0.37; 'case': 0.37; 'but': 0.38; 'subject:: ': 0.38; 'some': 0.38; 'doing': 0.39; 'should': 0.39; 'received:209': 0.39; 'either': 0.39; 'to:addr:python.org': 0.39; 'more': 0.60; 'simply': 0.60; 'best': 0.60; 'show': 0.66; 'here': 0.66; '"all': 0.84; '"there': 0.84; '(once': 0.84; 'it"': 0.84; 'often.': 0.84; 'subject:Why': 0.84; 'subject:choose': 0.84; 'subject:its': 0.84; 'zen': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:from:to:references:subject:date :mime-version:content-type:content-transfer-encoding:x-priority :x-msmail-priority:x-mailer:x-mimeole; bh=4H/Qs+Kh+d5HsCmZh91KLovAJjbk0L2wTAQ9CI4LMPk=; b=I9C2Y4Ry2DY5mWG6yy+BN90GLiKI6J4TXfhle8AB2XAdlMTUOL/unYLMoVdyltZxm9 FgP0THum5HvOD7V4TzydBkr/oxp+ByIEWFPvKAi/sKgvZZWU9TNF7KbrXaGM3xXHi5sO u61WM26/9fDWfs82ySWlp0i6PyB7/9/e6b7vA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:references:subject:date:mime-version :content-type:content-transfer-encoding:x-priority:x-msmail-priority :x-mailer:x-mimeole; b=CYK03idzzI31Q66M4dDSwP/FMiUYrNE7zXlMaOQXbzUddhNXUmEi+41Rkxb2+ijxTl duCBxUkoUBI7GXU3eN30Nk3kui4iN5yKizCScojl9AavhcXlibZDBpU+owq9F4oLQrMc bj5c+w3AnOv/VMPrbrBMrYAM1x4rfP8Tv1fGU= From: "Octavian Rasnita" To: References: <80d59383-36a3-4744-85c4-1a0577f1d3a6@dr5g2000vbb.googlegroups.com><9CDC4B2CD1F445E994119A50F65155DF@teddy><12225671E9654FECB49613D915FAEC19@teddy> <21A740B7AC6644248476DFADDF726C73@octavian> <629DAC3611EA49B0A36BCF70151CDE2F@octavian> Subject: Re: Why did Quora choose Python for its development? Date: Mon, 23 May 2011 22:05:28 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090 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: 52 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1306177554 news.xs4all.nl 49042 [::ffff:82.94.164.166]:40411 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:6090 From: "Terry Reedy" > On 5/23/2011 4:49 AM, Octavian Rasnita wrote: >=20 >> But let's remember from what this discussion started. This is not a >> Python critique, because each language has its own ways. >> I just wanted to show that the fact that "there is more than one way = to >> do it" in Perl and that "there is a single way" in Python are just >> buzzwords, >=20 > Agreed. The latter is simply incorrect for Python and I don't know why = > people say that. The statement from the Zen of Python is as follows: > "There should be one-- and preferably only one --obvious way to do = it." > where 'it' is some reasonable common operation. This is a statement of = > *intent* that is opposed to "All possible ways of doing things should = be=20 > included". The key word that people too often omit is *obvious* (once=20 > one learns Python). There are usually, of necessity, multiple ways to = do=20 > something, but for common operations, there should be one way that is=20 > obvious to the experienced Python programmer. Yes you are right. And it is exactly the same in case of experienced = Perl programmers. There is even a Perl book regarding the best practices, with many = recommendations for the obvious way to do various things, and there is = the module Perl::Critic with its command line percritic that follows = those best practices very closely, so it is also just a buzzword that = "there is more than one way to do it" for experienced Perl programmers. > > because this was an example where in Python there are many >> ways to do it while in Perl there is a single way used usually, which = is >> also more simple. >=20 > Here I disagree. As I replied before, you are either ignoring the=20 > obvious Python way or talking about a rare need. I was talking about the method of creating a dictionary from an array = which is much shorter and clear in Perl than in Python, and if you are = using this very rarely, others might need to use it often. Octavian