[Tutor] a quetion on "There should be one and preferabley one obvious way to do it"
Remco Gerlich
scarblac@pino.selwerd.nl
Mon, 21 Jan 2002 10:18:28 +0100
On 0, Karthik Gurumurthy <karthikg@aztec.soft.net> wrote:
> So here too we have different ways of getting something done.
> I guess i have not been able to get a clear picture of this python
> philosophy.
> any inputs?
Practicality beats purity.
It's a nice guideline, but not a holy law. Other ways to do something can be
added if Guido thinks it is worth it.
In Perl, it seems it is actually a *goal* to have several ways to do the
same thing, in Python it's seen as a negative thing (if there's no other
benefit), but not more than that.
[ In fact, zip() and map(None,) differ in their effect when two lists with
unequal sizes are used - try it ]
--
Remco Gerlich