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

Albert Visser albert.visser at gmail.com
Wed Dec 2 13:08:32 EST 2015


On Tue, 01 Dec 2015 22:15:08 +0100, Rick Johnson  
<rantingrickjohnson at gmail.com> 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/



More information about the Python-list mailing list