python的包装词汇表中有哪些隐喻?

2024-05-13 14:05:52 发布

您现在位置:Python中文网/ 问答频道 /正文

我很难理解为什么python在安装包时会有.egg或.wheel(或cheeseshop)这样的名称。

对术语鸡蛋车轮的使用有何解释?他们指的是什么?潜在的形象是什么?这个比喻?我只是不明白这个比喻是什么。

注意:我问的是命名,而不是“什么是鸡蛋?”。


Tags: 名称egg命名鸡蛋安装包术语wheel车轮
1条回答
网友
1楼 · 发布于 2024-05-13 14:05:52

鸡蛋和轮子

是活Python孵化出来的——它们是“Python的容器”。在

至于wheels,“PEP 427 Wheel二进制包格式1.0”,章节“Comparison to .egg”解释:

  1. Wheel is a reference to the other Python.

…意思是Pythons-the-comedians。在

Martijn Pieters commented在回答一个相关问题时,用舌头指着我的舌头wheel slogans(强调我的):

Wheel...

  • Because 'newegg' was taken.
  • Python packaging - reinvented.
  • A container for cheese.
  • It makes it easier to roll out software.

这直接导致。。。在

奶酪店

奶酪店本身explains its name

Trivia

The secret code name refers to the Cheese Shop sketch performed and recorded by John Cleese and Micheal Palin on 7 January 1972.

If you are really curious then view the sketch on YouTube.

Whether that name was chosen because CPAN [contained] so many packages at that time remains in the dark zone of rumours and wild speculation.

最后一点给出了your follow-up comment的答案:“草图的隐喻不起作用:它没有奶酪,而pypi中充满了奶酪。” 当Cheese Shop在2002年创建时,它只托管了可用Python包总数的一小部分。 通过与PERL的全面PERL存档网络(CPAN)的比较,可以强烈地看出这一点。在

他们还有意或无意地预测了这样的经历,比如试图在明显的地方找到yaml包,https://pypi.python.org/pypi/yaml,而它实际上隐藏在https://pypi.python.org/pypi/PyYAML中。在

最后,与草图更直接地平行,在Cheese Shop注册一个包并不需要向Cheese Shop上载任何东西。 {cd4}(来自我的):

The Python Package Index (PyPI) not only stores the package info, but also the package data if the author of the package wishes to.

由于包所有者可以选择在其他地方托管包文件,而且由于各种原因,“别处”可能不复存在,所以PyPI完全可以提供它无法提供的包。在

相关问题 更多 >