The Zen of Python distils the guiding principles for Python into 20 aphorisms but lists only 19. What's the twentieth?

Question:

From PEP 20, The Zen of Python:

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.

What is this twentieth aphorism? Does it exist, or is the reference merely a rhetorical device to make the reader think?

(One potential answer that occurs to me is that “You aren’t going to need it” is the remaining aphorism. If that were the case, it would both exist and act to make the reader think, and it would be characteristically playful, thus fitting the list all the better. But web searches suggest this to be an extreme programming mantra, not intrinsically Pythonic wisdom, so I’m stumped.)

Asked By: Jeff Walden

||

Answers:

Rule number 20: there is no rule #20.

This replaced the old rule #20: “you do not talk about fight club”.

Answered By: MusiGenesis

It has to be SIGNIFICANT WHITESPACE, of course!

Answered By: Geoffrey

20: “Don’t forget to drink your Ovaltine”

Answered By: jonesy

20: “You must discover this for yourself, grasshopper.”

Answered By: Hollister

20: “There are only 19”

*waves hand*

(jedi mind trick)

Answered By: Conceited Code

I suggest that it is PEP 20. Very zen.

Answered By: fbicknel

I had the opportunity to ask Guido about this recently. According to him, this is “some bizarre Tim Peters in-joke”. That, and/or (still according to him) it’s an opportunity for people to provide their own addition (as largely is happening in the answers to this question 🙂 ).

Answered By: Jeff Walden

PEP 20 :
is missing intentionally :
which could imply:
“keep yourself updated, keep searching for something new”
“make your own pep 20”

Answered By: python_monk

The number of this PEP was intentionally chosen – as PEP index doesn’t have to be continuous -leaving Tim with the freedom to choose whatever number he wanted.

Now the question comes to why the number 20 was chosen, if 19 aphorisms were written, why he didn’t name his proposal as PEP19? – This is where Zen started to be involved.

In the Zen-fluenced Japanese sushi restaurants, customers have the option to choose Omakase which means “I’ll leave it up to you”, in return (not typical but sometimes) the sushi chef will ask the customers to choose the last piece of sushi – either exploring a new fish or aftertast-ing a previous one – conceptual-wise it correlates to what @Jeff Walden mentioned in his answer where people have the opportunity to provide their own addition to complete the set.

After all it’s all pure speculation.

Answered By: Chen Xie

The 20th principle is a matter of opinion, but my interpretation is that the blank line (right after “The Zen of Python, by Tim Peters”) means “Use whitespace”.

Answered By: ArMaN

In the documentation, the “import this” command is listed as Easter Egg, so it was not written by Tim Peters but it is included in the PEP20 and it adds something not listed in the previous 19 aphorisms, so it must be the case for it to be the 20th. Looking more closely, it is an underlying message for pythonists to have PEP20 in mind when programming with python: “import this ideas”.

Answered By: Mauricio Reis

Tim Peters mentions that he left the 20th Aphorism for Guido to fill in,
in an email exchange (link posted by Guido van Rossum on twitter).

“There you go: 20 Pythonic Fec^H^H^HTheses on the nose, counting the one I’m
leaving for Guido to fill in”
– Tim Peters

Source:
Python mail link
Tweet link

Answered By: nagaraj bhat
Categories: questions Tags:
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.