Most efficient solution?

Peter Hansen peter at engcorp.com
Tue Jul 17 05:26:04 CEST 2001


Steve Holden wrote:
> "Peter Hansen" <peter at engcorp.com> wrote:
> > 3. We certainly talk a lot about "one way to write it",
> >    but obviously Python does allow several ways in most
> >    cases.  It seems to split roughly between the "most
> >    obvious" (probably only for us newcomers) and the
> >    map/filter/lambda/list comprehension style which is
> >    obviously second nature for some and entirely outside
> >    of the experience of others.  This ties back to
> >    (1), suggesting that learning more about these builtins
> >    is one of the best ways to optimize (working) Python code.
> 
> Peter: I believe the politically correct mantra is "one obvious way 
> to do it".

Yeah, I was reminded of that in reading 
http://www.amk.ca/python/writing/python-dev.html
shortly after I posted.   :(

 """13. There should be one -- and preferably only one -- obvious 
    way to do it. """

-- 
----------------------
Peter Hansen, P.Eng.
peter at engcorp.com



More information about the Python-list mailing list