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; 'python,': 0.01; 'bug': 0.02; 'maintenance,': 0.04; 'subject:Python': 0.06; 'defines': 0.07; 'dislike': 0.07; 'end,': 0.07; 'indentation': 0.07; 'names.': 0.07; 'whatever.': 0.07; 'python': 0.08; '__future__': 0.09; 'pm,': 0.10; 'syntax': 0.11; 'wrote:': 0.14; '"from': 0.16; 'able,': 0.16; 'angelico': 0.16; 'delimited': 0.16; 'fix,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'properly.': 0.16; 'syntactical': 0.16; 'whitespace.': 0.16; 'language,': 0.17; 'mon,': 0.17; 'header:In-Reply-To:1': 0.21; 'variable': 0.21; 'seems': 0.21; '(but': 0.22; 'wrote': 0.22; 'fine': 0.22; 'received:209.85.210.174': 0.23; 'received:mail- iy0-f174.google.com': 0.23; 'structure': 0.23; 'code': 0.24; 'statement': 0.26; 'message-id:@mail.gmail.com': 0.28; '(the': 0.28; 'lee': 0.29; 'subject:?': 0.29; 'import': 0.29; "python's": 0.29; 'do.': 0.30; '"in': 0.30; 'if,': 0.30; 'whitespace': 0.30; "can't": 0.32; 'to:addr:python-list': 0.33; 'comment': 0.33; "isn't": 0.33; 'things': 0.33; 'chris': 0.34; 'maintained': 0.35; 'quite': 0.36; 'from:': 0.36; 'program,': 0.37; 'received:google.com': 0.37; 'something': 0.37; 'received:209.85': 0.37; '(by': 0.37; 'desirable': 0.37; 'else,': 0.37; 'another': 0.37; 'put': 0.37; 'but': 0.38; 'subject:: ': 0.38; 'case,': 0.39; 'sometimes': 0.39; 'doing': 0.39; 'received:209': 0.39; 'to:addr:python.org': 0.39; 'under': 0.40; 'feature': 0.40; 'back': 0.63; 'perfect': 0.64; 'believe': 0.66; 'making': 0.67; 'engine': 0.70; '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=RHP2BRXcLge1rfGJyC8KDfy4Cu8lVVP9ruO0FORwyiY=; b=EDpIm15uWEEfwdtG9tFzvg3G33Gjw+DhEXAVQvhZQFHMLXHdaXnfNkGbsCNXM9ua2w YIN80K1wAvbVO/hOM3oiC3U4IXycVChzavN6ApqZ/OKs/G6mn08OVqXBCslWOdcG9D3h 1fmRY6XF7x2SPaHpVHFSsEYHBgFprsiNd/AKE= 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=UKf9asojedAYPLrOSLyDhoMpPfJ7fyGuGfcf3NiWusYssuA4/QXxepmTOunfXgfM/u +f2450CupHGJyctHNtAr7JM4q8Dc9jT6tL3dIqwqXb5PnIA6Id4YCMhkXuacZwihk7ft WH9kY8xdvKiARoN/aCRMR4NHLF25sthIIXksk= MIME-Version: 1.0 In-Reply-To: <21A740B7AC6644248476DFADDF726C73@octavian> References: <80d59383-36a3-4744-85c4-1a0577f1d3a6@dr5g2000vbb.googlegroups.com> <9CDC4B2CD1F445E994119A50F65155DF@teddy> <12225671E9654FECB49613D915FAEC19@teddy> <21A740B7AC6644248476DFADDF726C73@octavian> Date: Mon, 23 May 2011 16:37:10 +1000 Subject: Re: Why did Quora choose Python for its development? From: Chris Angelico 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: 38 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1306132633 news.xs4all.nl 49041 [::ffff:82.94.164.166]:35394 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:6041 On Mon, May 23, 2011 at 3:31 PM, Octavian Rasnita wrote: > From: "Dennis Lee Bieber" >> >> Since indentation seems so crucial to easy comprehension of the logical >> structure of a program, >> making it a mandatory syntactical structure becomes a desirable feature >> for code that must be maintained (by others, in many cases). > > Why "in many cases"? I wrote hundreads of programs which are working fine > and which are maintained only by me. (But they would be very easy to > maintain by other people if it would be necessary). > So in that case, why to be forced to use a strict indentation? The reason for clear code is maintenance, not maintenance-by-others. If you come back to something in a year, you'll appreciate proper variable names, indentation, etc. That said, though, I still do not believe in Python's philosophy of significant whitespace. I like to be able, if I choose, to put one entire "logical unit" on one line, such that it can be commented out with a single comment marker, or duplicated to another line and one copy commented out, or whatever. To that end, I sometimes want to put an if, its associated else, and sometimes a statement for both branches, all in the one line. And that's not possible when whitespace alone defines the end of an if/else block (the one-line form of a Python 'if' can't have a non-conditional statement after it at all), but is quite easy when things are delimited with braces. Bug report: The "from __future__ import braces" statement isn't working properly. Pls fix, kthxbye. :) But I still like Python overall. There's no such thing as a perfect language, and when it comes to syntax disagreements, I dislike Python's significant whitespace far less than I dislike PHP's adorned variable names. And Python, under the hood, is a very good engine for doing what I need to do. Chris Angelico