Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feed.xsnews.nl!border-2.ams.xsnews.nl!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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'argument': 0.04; 'preferably': 0.05; 'python': 0.09; 'forcing': 0.09; 'subject:python': 0.11; 'sat,': 0.15; '*you*': 0.16; 'code).': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'guide.': 0.16; 'handling.': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'oct': 0.16; 'programmer,': 0.16; 'programmers,': 0.16; 'subject:Feedback': 0.16; 'wrote:': 0.17; 'certainly': 0.17; '>>>': 0.18; '(or': 0.18; 'module': 0.19; 'mostly': 0.20; 'python?': 0.20; 'trying': 0.21; 'bit': 0.21; 'tells': 0.22; 'command': 0.24; 'least': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'handling': 0.27; 'language.': 0.27; 'core': 0.27; 'opposed': 0.27; 'chris': 0.28; 'decide': 0.28; '-0700,': 0.29; "d'aprano": 0.29; 'it."': 0.29; 'perl': 0.29; 'received:192.168.1.3': 0.29; 'steven': 0.29; 'things,': 0.29; 'usually': 0.30; 'more,': 0.32; 'spread': 0.32; 'choices': 0.33; 'stands': 0.33; 'to:addr:python- list': 0.33; 'languages': 0.33; 'there': 0.35; 'next': 0.35; 'but': 0.36; 'programmers': 0.36; 'should': 0.36; 'october': 0.37; 'being': 0.37; 'rather': 0.37; 'subject:: ': 0.38; 'skip:l 20': 0.38; 'gives': 0.39; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'where': 0.40; 'received:192.168': 0.40; 'think': 0.40; 'skip:u 10': 0.60; 'first': 0.61; "you'll": 0.62; 'ever': 0.63; 'more': 0.63; 'therefore': 0.65; 'header:Reply-To:1': 0.68; 'believe': 0.69; 'obvious': 0.71; 'reply-to:no real name:2**0': 0.72; 'you:': 0.75; 'it"': 0.84; 'motto': 0.84; 'reply- to:addr:python.org': 0.84; 'zen': 0.84 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.0 cv=OqzNOlDt c=1 sm=1 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=AAvI7MrX_rgA:10 a=yHrsb2Vx5GEA:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=DaFgaNYaAuIA:10 a=jAthzyGhDJVRqEDTuGAA:9 a=wPNLvfGTeEIA:10 a=0nF1XD0wxitMEM03M9B4ZQ==:117 X-AUTH: mrabarnett:2500 Date: Sun, 14 Oct 2012 03:58:43 +0100 From: MRAB User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Feedback on my python framework I'm building. References: <634c9dca-e64d-40c6-b9d5-cf04a86a220a@googlegroups.com> <4c7a82ca-de0c-4b8b-a128-9ecd1b4c8b31@googlegroups.com> <5f18f5d1-1442-4a10-922c-783dc6ddf657@googlegroups.com> <9c958a7c-04db-4c6d-a8a2-38400e67e718@googlegroups.com> <507a2298$0$6574$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: <507a2298$0$6574$c3e8da3$5496439d@news.astraweb.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: python-list@python.org 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: 47 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1350183518 news.xs4all.nl 6844 [2001:888:2000:d::a6]:47690 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:31234 On 2012-10-14 03:25, Steven D'Aprano wrote: > On Sat, 13 Oct 2012 15:24:04 -0700, nbvfour wrote: > >> On Saturday, October 13, 2012 2:33:43 PM UTC-4, Chris Angelico wrote: >>> >>> Nice theory, but this is the bit that I fundamentally disagree with. >>> Forcing programmers to work in one particular style is usually not the >>> job of the language/framework/library. That should be up to the >>> programmer, or at least the local style guide. >> >> Have you ever read the zen of python? "Theres only one way to do it" is >> a core motto of the python language. > > Have *you* ever read the Zen of Python? The line from the Zen is: > > "There should be one-- and preferably only one --obvious way to do it." > > Paraphrasing for emphasis: > > There SHOULD be one (or more, but one is best) OBVIOUS way to do it. > > as opposed to languages where there are no obvious ways to things, or > thirty. > > Don't believe me that the emphasis is on *obvious* rather than "only"? > The very next line of the Zen tells you: > > "Although that way may not be OBVIOUS at first unless you're Dutch." > > [emphasis added] > > Not being Dutch, I don't know whether the obvious way to do command line > argument handling is the getopt module or argparse. But there certainly > isn't *only one way* to do command line argument handling. > > It is a gross canard, mostly spread by Perl programmers, that Python is > "limited" to "only one way to do it" and therefore isn't as good as Perl > which gives you "more freedom" (to write unreadable, unmaintainable code). > > It simply isn't true that Python only gives you "only one way". The > acronym OOWTDI stands for *one obvious way to do it*. > I think it's the "Paradox of Choice". The more choices there are, the more time you'll spend trying to decide which one is "best".