Python的PEP文档

What is PEP?
Python的 PEP文档是一组不断发展的标准文档, PEP是 Python Enhancement Proposal首字母的缩写,就像TCP/IP协议使用RFC不断发展成为通信标准一样,PEP也是类似的用于发展Python的一组文档.

PEP stands for Python Enhancement Proposal. A PEP is a design document providing information to the Python community, or describing a new feature for Python or its processes or environment. The PEP should provide a concise technical specification of the feature and a rationale for the feature.

We intend PEPs to be the primary mechanisms for proposing major new features, for collecting community input on an issue, and for documenting the design decisions that have gone into Python. The PEP author is responsible for building consensus within the community and documenting dissenting opinions.

Because the PEPs are maintained as text files in a versioned repository, their revision history is the historical record of the feature proposal [1].

有道翻译一波
PEP代表Python增强建议。PEP是一种设计文档,它向Python社区提供信息,或者描述Python或其流程或环境的新特性。PEP应该提供特性的简明技术规范和特性的基本原理。
我们打算将PEPs作为提出主要新特性的主要机制,用于收集关于某个问题的社区输入,以及记录Python中的设计决策。PEP作者负责在社区内建立共识并记录不同意见。
因为pep是作为文本文件在版本化的存储库中维护的,所以它们的修订历史记录是特性建议[1]的历史记录。
说白了其实就是记录文档~

PEP8

程序员看的比较多的是 PEP8文档,这是官方出的编程规范.
PEP文档很多,说明Python的社区非常活跃,Python也就越流行~
发布了157 篇原创文章 · 获赞 43 · 访问量 9万+

猜你喜欢

转载自blog.csdn.net/qq_39581763/article/details/104213430