官术网_书友最值得收藏!

Getting up to date with changes – PEP documents

The Python community has a well-established way of dealing with changes. While speculative Python language ideas are mostly discussed on specific mailing lists (), nothing major ever gets changed without the existence of a new document called a PEP. A PEP is a Python Enhancement Proposal. It is a paper written that proposes a change on Python, and is a starting point for the community to discuss it. The whole purpose, format, and workflow around these documents is also standardized in the form of a Python Enhancement Proposal—precisely, PEP 1 document (http://www.python.org/dev/peps/pep-0001).

PEP documents are very important for Python and depending on the topic, they serve different purposes:

  • Informing: They summarize the information needed by core Python developers and notify about Python release schedules
  • Standardizing: They provide code style, documentation, or other guidelines
  • Designing: They describe the proposed features

A list of all the proposed PEPs is available as in a document—PEP 0 (https://www.python.org/dev/peps/). Since they are easily accessible in one place and the actual URL is also very easy to guess, they are usually referred to by the number in the book.

Those who are wondering what the direction is in which the Python language is heading but do not have time to track a discussion on Python mailing lists, the PEP 0 document can be a great source of information. It shows which documents have already been accepted but are not yet implemented and also which are still under consideration.

PEPs also serve additional purposes. Very often, people ask questions like:

  • Why does feature A work that way?
  • Why does Python not have feature B?

In most such cases, the extensive answer is available in specific PEP documents where such a feature has already been mentioned. There are a lot of PEP documents describing Python language features that were proposed but not accepted. These documents are left as a historical reference.

主站蜘蛛池模板: 南川市| 晋州市| 台湾省| 荥经县| 美姑县| 容城县| 乐业县| 宝应县| 石泉县| 通河县| 大方县| 运城市| 盐池县| 汶上县| 隆回县| 三原县| 朝阳市| 黎川县| 竹溪县| 泰顺县| 阿荣旗| 精河县| 巴南区| 武汉市| 郁南县| 育儿| 合肥市| 贵定县| 黔西| 德江县| 那坡县| 凤庆县| 图木舒克市| 祥云县| 呼图壁县| 分宜县| 西平县| 临猗县| 栖霞市| 安化县| 固阳县|