Humor

From Python
(Difference between revisions)
Jump to: navigation, search
(python easter eggs)
Line 31: Line 31:
 
''This text can be seen by running:''
 
''This text can be seen by running:''
 
  python -c "import this"
 
  python -c "import this"
 +
 +
a few python easter eggs:
 +
Python 2.4.4c0 (#2, Jul 30 2006, 15:43:58)
 +
[GCC 4.1.2 20060715 (prerelease) (Debian 4.1.1-9)] on linux2
 +
Type "help", "copyright", "credits" or "license" for more information.
 +
>>>
 +
>>> from __future__ import braces
 +
  File "<stdin>", line 1
 +
SyntaxError: not a chance
 +
>>>
 +
>>> import __hello__
 +
Hello world...
 +
>>> _

Revision as of 14:58, 2 September 2006

http://www.python.org/doc/Humor.html - Python.org Python Humor

Programming Parrot - Perl and Python are about to be merged.

Stricter Whitespace Enforcement in Python - a proposal by Guido von Rossum.

"האני מאמין" של פייטון - The Python Creed

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!

This text can be seen by running:

python -c "import this"

a few python easter eggs:

Python 2.4.4c0 (#2, Jul 30 2006, 15:43:58)
[GCC 4.1.2 20060715 (prerelease) (Debian 4.1.1-9)] on linux2 
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> from __future__ import braces
  File "<stdin>", line 1
SyntaxError: not a chance
>>>
>>> import __hello__
Hello world...
>>> _
Personal tools