Quantcast The Zen of Python - digitalFAQ.com Forums [Archives]
  #1  
05-15-2005, 06:19 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
If anyone here programs in Python, and you've missed this module, open the interpreter and type:

import this

You will be greeted with "The Zen of Python"

Code:
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
I just learned this on a Python class this week

-kwag
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Python decompiler for windows rhino Avisynth Scripting 1 11-17-2006 11:58 PM
Python on Nokia Series 60 handsets kwag Avisynth Scripting 9 07-14-2004 05:30 PM
Python: Who's using it, where and how. kwag Avisynth Scripting 0 09-25-2003 12:44 AM
Python: The future of AviSynth! kwag Avisynth Scripting 0 02-08-2003 12:46 AM
What is Python... A Snake? kwag Avisynth Scripting 0 02-07-2003 11:44 PM

Thread Tools



 
All times are GMT -5. The time now is 06:46 AM  —  vBulletin Jelsoft Enterprises Ltd