Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #99817

Re: Is vars() the most useless Python built-in ever?

Newsgroups comp.lang.python
Date 2015-12-01 13:15 -0800
References <565cf141$0$1612$c3e8da3$5496439d@news.astraweb.com> <4f0f7fc5-c93a-4223-9c05-e192a8fafbbd@googlegroups.com> <n3kjf4$ct6$1@reader1.panix.com>
Message-ID <4327593e-9b6a-49f0-9b11-addda7906a29@googlegroups.com> (permalink)
Subject Re: Is vars() the most useless Python built-in ever?
From Rick Johnson <rantingrickjohnson@gmail.com>

Show all headers | View raw


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. In fact, adding the word "obvious" only adds more truth to my argument. The word "obvious" does not imply that the choose method is "one *OBVIOUS* choice in a set of many choices", no, the word obvious merely implies intuitiveness. Let's dissect the "koan" component by component:

  "There should be one"

This component is less of a request, and more of a demand. It seems the author wishes to stress that whatever follows, there should only be one of them.
 
  "and preferably only one"

Interesting. Utilizing his advanced intellect, the author realizes that confining any set of choices to a length of one is not always possible, however, he *AGAIN* stresses the importance of length one! I'm beginning to see a common and obvious theme here, do you?

  "obvious way to do it"

And finally we encounter the obviousness of the one chosen way!  

The three components can be summarized as follows: First he demands a length of one, then he allows for exceptions while again stressing the importance of "one", and finally he stresses the importance of intuitiveness by using the word "obvious". 

In *NONE* of these components does the author *ENCOURAGE* a set of choices, no, he consistently stresses the importance of "one". And although it seems he has lost his will within the middle component (by entertaining the "unpreferred" possibility of more than one choice) he did not do so because his argument for "one" is weak, rather because, he knows that conflict and contrarianism is inevitable in a world that is ruled by selfish hairless apes! He has both demanded, and made an impassioned plea for, the "one obvious way" to do it. Any other interpretation is pure emotional projection.

PS: Now that I've defeated the claim that "the koan is encouraging more than one way", as a last resort, they will dismiss the koan as unimportant. This is not my first experience here folks!!!

PPS: Koan must be word of the day.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Is vars() the most useless Python built-in ever? Steven D'Aprano <steve@pearwood.info> - 2015-12-01 12:00 +1100
  Re: Is vars() the most useless Python built-in ever? Josef Pktd <josef.pktd@gmail.com> - 2015-11-30 19:45 -0800
  Re: Is vars() the most useless Python built-in ever? Rick Johnson <rantingrickjohnson@gmail.com> - 2015-11-30 21:54 -0800
    Re: Is vars() the most useless Python built-in ever? Marko Rauhamaa <marko@pacujo.net> - 2015-12-01 09:34 +0200
      Re: Is vars() the most useless Python built-in ever? Rick Johnson <rantingrickjohnson@gmail.com> - 2015-12-11 13:06 -0800
    Re: Is vars() the most useless Python built-in ever? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-12-01 18:55 +1100
      Re: Is vars() the most useless Python built-in ever? Rick Johnson <rantingrickjohnson@gmail.com> - 2015-12-01 12:33 -0800
        Re: Is vars() the most useless Python built-in ever? Steven D'Aprano <steve@pearwood.info> - 2015-12-02 11:57 +1100
        Re: Is vars() the most useless Python built-in ever? Ian Kelly <ian.g.kelly@gmail.com> - 2015-12-01 22:48 -0600
          Re: Is vars() the most useless Python built-in ever? Rick Johnson <rantingrickjohnson@gmail.com> - 2015-12-11 14:13 -0800
            Re: Is vars() the most useless Python built-in ever? Steven D'Aprano <steve@pearwood.info> - 2015-12-12 15:44 +1100
              Re: Is vars() the most useless Python built-in ever? Chris Angelico <rosuav@gmail.com> - 2015-12-12 16:56 +1100
              Re: Is vars() the most useless Python built-in ever? Rick Johnson <rantingrickjohnson@gmail.com> - 2015-12-14 18:33 -0800
      Re: Is vars() the most useless Python built-in ever? Ben Finney <ben+python@benfinney.id.au> - 2015-12-02 12:47 +1100
    Re: Is vars() the most useless Python built-in ever? John Gordon <gordon@panix.com> - 2015-12-01 16:56 +0000
      Re: Is vars() the most useless Python built-in ever? Rick Johnson <rantingrickjohnson@gmail.com> - 2015-12-01 13:15 -0800
        Re: Is vars() the most useless Python built-in ever? "Albert Visser" <albert.visser@gmail.com> - 2015-12-02 19:08 +0100
    Re: Is vars() the most useless Python built-in ever? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2015-12-02 13:14 +1300
  Re: Is vars() the most useless Python built-in ever? eryk sun <eryksun@gmail.com> - 2015-12-01 01:22 -0600
    Re: Is vars() the most useless Python built-in ever? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-12-01 18:57 +1100
  Re: Is vars() the most useless Python built-in ever? Manolo Martínez <manolo@austrohungaro.com> - 2015-12-01 09:44 +0100
    Re: Is vars() the most useless Python built-in ever? Steven D'Aprano <steve@pearwood.info> - 2015-12-02 12:12 +1100
      Re: Is vars() the most useless Python built-in ever? Peter Otten <__peter__@web.de> - 2015-12-02 08:51 +0100
  Re: Is vars() the most useless Python built-in ever? Peter Otten <__peter__@web.de> - 2015-12-01 11:40 +0100
  Re: Is vars() the most useless Python built-in ever? Manolo Martínez <manolo@austrohungaro.com> - 2015-12-01 22:31 +0100
  Re: Is vars() the most useless Python built-in ever? Peter Otten <__peter__@web.de> - 2015-12-01 23:41 +0100
  Re: Is vars() the most useless Python built-in ever? boB Stepp <robertvstepp@gmail.com> - 2015-12-01 20:20 -0600
  Re: Is vars() the most useless Python built-in ever? wxjmfauth@gmail.com - 2015-12-01 23:46 -0800
  Re: Is vars() the most useless Python built-in ever? Serhiy Storchaka <storchaka@gmail.com> - 2015-12-02 10:22 +0200
  Re: Is vars() the most useless Python built-in ever? Manolo Martínez <manolo@austrohungaro.com> - 2015-12-02 10:09 +0100
  Re: Is vars() the most useless Python built-in ever? Chris Angelico <rosuav@gmail.com> - 2015-12-02 20:28 +1100
  Re: Is vars() the most useless Python built-in ever? Chris Angelico <rosuav@gmail.com> - 2015-12-02 20:33 +1100
  Re: Is vars() the most useless Python built-in ever? Manolo Martínez <manolo@austrohungaro.com> - 2015-12-02 10:40 +0100
  Re: Is vars() the most useless Python built-in ever? Peter Otten <__peter__@web.de> - 2015-12-02 11:48 +0100
  Re: Is vars() the most useless Python built-in ever? Chris Angelico <rosuav@gmail.com> - 2015-12-02 22:02 +1100
  Re: Is vars() the most useless Python built-in ever? eryk sun <eryksun@gmail.com> - 2015-12-02 05:34 -0600
  Re: Is vars() the most useless Python built-in ever? Serhiy Storchaka <storchaka@gmail.com> - 2015-12-04 10:42 +0200

csiph-web