Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

The zen of python (See related posts)

An easter egg in python.
   1  
   2  >>> import this
   3  The Zen of Python, by Tim Peters
   4  
   5  Beautiful is better than ugly.
   6  Explicit is better than implicit.
   7  Simple is better than complex.
   8  Complex is better than complicated.
   9  Flat is better than nested.
  10  Sparse is better than dense.
  11  Readability counts.
  12  Special cases aren't special enough to break the rules.
  13  Although practicality beats purity.
  14  Errors should never pass silently.
  15  Unless explicitly silenced.
  16  In the face of ambiguity, refuse the temptation to guess.
  17  There should be one-- and preferably only one --obvious way to do it.
  18  Although that way may not be obvious at first unless you're Dutch.
  19  Now is better than never.
  20  Although never is often better than *right* now.
  21  If the implementation is hard to explain, it's a bad idea.
  22  If the implementation is easy to explain, it may be a good idea.
  23  Namespaces are one honking great idea -- let's do more of those!
  24  >>> 

Comments on this post

whitetiger posts on Mar 17, 2006 at 16:37
eheheh beautifull trick

You need to create an account or log in to post comments to this site.


Click here to browse all 5502 code snippets

Related Posts