为什么要保留 PEP-801?
Why is PEP-801 reserved?
我在 PEP index page 中滚动并注意到“华沙”保留了一个 PEP 编号:
PEP
PEP Title
PEP Author(s)
I
801
Reserved
Warsaw
我出于好奇查找了它,我发现唯一引用它的是 PEP index page 和 2013 年的这个提交,它们没有回答我的问题
在提交中,他们解释说这可能是出于幽默原因(例如 666),但我不明白为什么是 801。这个数字与什么有关?
警告,这是假设,尽管经过调查 至少 是合理的。
如果您查看 python\peps\pep0
文件的历史记录(所有 PEP 的列表),您会发现 change 是在 2013 年 10 月由一位 Barry Warsaw 完成的,所以可能什么都没有与任何波兰 Python 用户组有关作为一些猜测:-)
我真的只能建议为什么 我 会做这样的事情,基于此,最可能的原因是测试更改是否有效具有一些随机值,或者需要某种占位符。没有问作者本人(我现在已经问过了,敬请期待......),这可能是目前最有可能的原因。
收到作者回复后,原因很简单,跟当年的某个song/band有关,可能this one。邮件回复如下:
You’ve both reached out to me about the same topic and SO thread, so I
hope you don’t mind me responding to you both. First, thanks for your
love of Python! It’s a fantastic language, and even better community,
and it’s been a great place to have spent the better part of my
professional career.
What better than a minor mystery in a corner of a language? Python,
named after the Monty Python troupe, has a rich history of humor and
easter eggs, so 801 could be nothing more than that. An enigma,
wrapped in a riddle, stuffed into a conundrum. A turducken PEP.
Maybe you’re right, and it’s the secret key that unlocks the Polish
Python Ploy, a conspiracy of Warsawans to take over the language from
the Dastardly Dutch Dozen. Or it could be a number, that when fed to
a certain Python stdlib API, takes over your speakers and unstoppably
plays the entire series of Flying Circus until you Silly Walk
accurately in front of your webcam.
I like to think it’s just a fun number that named a song and a band
some people were into back in the day, coupled with the abuse of power
from a mad PEP editor everyone else is too afraid to question. Only
the Python Secret Underground (PSU) -which emphatically does not
exist- knows for sure.
Cheers,
-Barry
有些 PEP 没有按顺序编号,而是根据内容编号。例子是:
现在如果我想开始写一个PEP,我希望它有一个特殊的编号,但我还没有写呢?那我们可以去问PEP经理! 2018 年 6 月 21 日,PEP 编号 801 在 this pull request. Initially, PEP 581 was reserved as well, but this reservation was withdrawn.
中保留
所以,大概人们保留了 PEP 801 和 581,因为他们正在准备一个 PEP,这个数字对这个数字有特殊意义,他们不希望那个数字被分配给任何其他 PEP。
我在 PEP index page 中滚动并注意到“华沙”保留了一个 PEP 编号:
PEP PEP Title PEP Author(s) I 801 Reserved Warsaw
我出于好奇查找了它,我发现唯一引用它的是 PEP index page 和 2013 年的这个提交,它们没有回答我的问题
在提交中,他们解释说这可能是出于幽默原因(例如 666),但我不明白为什么是 801。这个数字与什么有关?
警告,这是假设,尽管经过调查 至少 是合理的。
如果您查看 python\peps\pep0
文件的历史记录(所有 PEP 的列表),您会发现 change 是在 2013 年 10 月由一位 Barry Warsaw 完成的,所以可能什么都没有与任何波兰 Python 用户组有关作为一些猜测:-)
我真的只能建议为什么 我 会做这样的事情,基于此,最可能的原因是测试更改是否有效具有一些随机值,或者需要某种占位符。没有问作者本人(我现在已经问过了,敬请期待......),这可能是目前最有可能的原因。
收到作者回复后,原因很简单,跟当年的某个song/band有关,可能this one。邮件回复如下:
You’ve both reached out to me about the same topic and SO thread, so I hope you don’t mind me responding to you both. First, thanks for your love of Python! It’s a fantastic language, and even better community, and it’s been a great place to have spent the better part of my professional career.
What better than a minor mystery in a corner of a language? Python, named after the Monty Python troupe, has a rich history of humor and easter eggs, so 801 could be nothing more than that. An enigma, wrapped in a riddle, stuffed into a conundrum. A turducken PEP.
Maybe you’re right, and it’s the secret key that unlocks the Polish Python Ploy, a conspiracy of Warsawans to take over the language from the Dastardly Dutch Dozen. Or it could be a number, that when fed to a certain Python stdlib API, takes over your speakers and unstoppably plays the entire series of Flying Circus until you Silly Walk accurately in front of your webcam.
I like to think it’s just a fun number that named a song and a band some people were into back in the day, coupled with the abuse of power from a mad PEP editor everyone else is too afraid to question. Only the Python Secret Underground (PSU) -which emphatically does not exist- knows for sure.
Cheers,
-Barry
有些 PEP 没有按顺序编号,而是根据内容编号。例子是:
现在如果我想开始写一个PEP,我希望它有一个特殊的编号,但我还没有写呢?那我们可以去问PEP经理! 2018 年 6 月 21 日,PEP 编号 801 在 this pull request. Initially, PEP 581 was reserved as well, but this reservation was withdrawn.
中保留所以,大概人们保留了 PEP 801 和 581,因为他们正在准备一个 PEP,这个数字对这个数字有特殊意义,他们不希望那个数字被分配给任何其他 PEP。