Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "Albert Visser" Newsgroups: comp.lang.python Subject: Re: Is vars() the most useless Python built-in ever? Date: Wed, 02 Dec 2015 19:08:32 +0100 Lines: 31 Message-ID: References: <565cf141$0$1612$c3e8da3$5496439d@news.astraweb.com> <4f0f7fc5-c93a-4223-9c05-e192a8fafbbd@googlegroups.com> <4327593e-9b6a-49f0-9b11-addda7906a29@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 98C5OWvYEwXs5Ydjh30ytg3f3ezNgs5/PT2dEH6BylVA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python,': 0.02; 'subject:Python': 0.05; 'preferably': 0.05; 'remind': 0.05; 'client:': 0.09; 'python': 0.10; 'describing': 0.16; 'one)': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:ever': 0.16; 'subject:most': 0.16; 'wrote:': 0.16; '2015': 0.20; 'dec': 0.23; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'correct': 0.28; 'december': 0.32; 'statement': 0.32; 'tue,': 0.34; 'received:google.com': 0.35; 'received:74.125.82': 0.35; 'but': 0.36; 'should': 0.36; 'there': 0.36; '(and': 0.36; 'to:addr :python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'johnson': 0.37; 'does': 0.39; 'subject:the': 0.39; 'subject:-': 0.39; 'rather': 0.39; 'url:mail': 0.40; 'to:addr:python.org': 0.40; 'your': 0.60; 'john': 0.61; 'fact,': 0.67; 'albert': 0.91; 'rick': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:to:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to:user-agent; bh=OdYq56DGv0FCnOxOnR40URc9SNWD4NnZJb+PojQhzhg=; b=HlNciXEmRcetHkYj7NHA/dxfQldmKwrGHMChiFszrKo7NH+9Fbzq9AVSz6w0aVhY5J jShGYAIz9H+5X4bZLyU3w3xi7qFEVIEOTS0rzPQloI+Zc1Px9P7dtokQENC74QAgEEgG QLPJorGOOVwJtAXmL5+tAfoiAu4lTNdT/kbbwSmRAlemlmDhJg7w6jw491W45lks8RD1 2Q/p0LPF9Hg1QXdLqtItXc/dY0nLVkzyUz/gvfATO38VcW3V9slirWifbaTs27DIsvag utKCbMpvqfdlRKPnpbc3vS0fpojyFUJOVAZ225fZSaoVpqcBkUA3l39sjrFuInzJ4mup PDAw== X-Received: by 10.28.61.213 with SMTP id k204mr48359840wma.5.1449079715128; Wed, 02 Dec 2015 10:08:35 -0800 (PST) In-Reply-To: <4327593e-9b6a-49f0-9b11-addda7906a29@googlegroups.com> User-Agent: Opera Mail/12.16 (Linux) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:99905 On Tue, 01 Dec 2015 22:15:08 +0100, Rick Johnson wrote: > On Tuesday, December 1, 2015 at 10:56:27 AM UTC-6, John Gordon wrote: >> Rick Johnson writes: >> > Your lament does remind me of a pet peeve i have concerning Python, >> and >> > that is, the lie about: "THERE SHOULD BE ONE (AND PREFERABLY ONLY ONE) >> > WAY TO DO IT!". In fact, in python there is almost always *MANY* ways >> to >> > achieve the same output.=20 >> >> The koan reads: >> >> There should be one-- and preferably only one --obvious way to do >> it. >> >> You left out the rather important word "obvious". > > Indeed you are correct about the wording, but your interpretation is > wrong. Mm, not so much. What you're describing is a statement like "There should be one way and it should be obvious". -- Vriendelijke groeten / Kind regards, Albert Visser Using Opera's mail client: http://www.opera.com/mail/