Why and how "there is only one way to do something"?

Xavier Morel xavier.morel at masklinn.net
Thu Dec 15 16:28:30 CET 2005

Aahz wrote:
> In article <mailman.2138.1134650183.18701.python-list at python.org>,
> Steve Holden  <steve at holdenweb.com> wrote:
>> (Part of) Python's credo (which you can read in context by typing
>>     import this
>> at an interactive command prompt) is "There should be one (and 
>> preferably only one) way to do it".
> Actually, I've gotten used to doing
>     python -c 'import this'
Which can be built even more easily with

$ python -m this
(no quotes needed btw)

It's usually useful to pipe it through grep too, in order to get only 
the piece of zen knowledge you need.

More information about the Python-list mailing list