Advertisement
Python253

The Zen of Python: Tim Peters

Apr 23rd, 2018
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.16 KB | None | 0 0
  1. The Zen of Python
  2.  
  3. 1: Beautiful is better than ugly.
  4. 2: Explicit is better than implicit.
  5. 3: Simple is better than complex.
  6. 4: Complex is better than complicated.
  7. 5: Flat is better than nested.
  8. 6: Sparse is better than dense.
  9. 7:Readability counts.
  10. 8:Special cases aren't special enough to break the rules.
  11. 9:Although practicality beats purity.
  12. 10:Errors should never pass silently. 11:Unless explicitly silenced.
  13. 12:In the face of ambiguity, refuse the temptation to guess.
  14. 13:There should be one-- and preferably only one --obvious way to do it.
  15. 14:Although that way may not be obvious at first unless you're Dutch.
  16. 15:Now is better than never.
  17. 16:Although never is often better than *right* now.
  18. 17:If the implementation is hard to explain, it's a bad idea.
  19. 18:If the implementation is easy to explain, it may be a good idea.
  20. 19:Namespaces are one honking great idea -- let's do more of those!
  21. 20:???
  22. ...
  23. Easter Egg:
  24. In the terminal, type:
  25. >>> import this
  26. ...
  27. Abstract:
  28.  
  29. Long time Pythoneer Tim Peters succinctly channels the BDFL's guiding principles for Python's design into 20 aphorisms, only 19 of which have been written down.
  30. ...
  31.  
  32.  
  33. #END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement