Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
July 19, 2020 03:01 am GMT

What is PEP in python?

Introduction

If you are new to python you heard something like PEP-8 which is called python style guide or PEP-20 The Zen Of python Or some guides named with PEP and a number. and at some point you maybe confused what is this, so in this article we are going to explore what is PEP.

What is PEP?

PEP stand for Python Enhancement Proposal. It is a design document which contains guidelines, implementation of new python feature. PEP is like Bible for python community.This is exists mainly for documentation of new feature in python and design rules.

Who needs PEP?

PEP is mostly for core python/Cpython developers and developers who implements the flavours of python like Jpython, Ironpython, Pypy, etc, but there are some Informational PEPs that are available for all developers.

Type of PEP

There are three types of PEPs,

1.Standards Track is explains implementation of a new feature in python.It is also supports the standard rules that is not depend on python versions.These are written by the core developers for python community.
2.Informational PEP is talk about issues in python and general guidelines.These are the proposals written by the developers.Its not that important so python developers free to follow or neglect this guides.
3.Process PEP is a PEP about PEP (kinda confusing isnt it, me too!).It describe process in python like Style guide PEP-8.It covers topic outside of python.Its like Standard Tracks and so so we cant ignore them.All the meta-PEPs are considered process peps.

How PEPs are created?

As said Earliar PEPS are mostly written by core python developers.but, Any developer who want to contribute to python community can write a PEP proposal. All PEPs repositories are stored in Github, you can add your own PEP proposal by pulling your proposal to this repo but before write your PEP proposal you need to follow these rules.Once completed the PEP proposal submit/pull , the Pythons Streering Council(Yes theres a cousil Parliment of python) choose weather accept or reject the proposal.

What is the number next to PEP means?

Thats a random number between 0000-9999, the author who wrote the proposal can choose his PEP number but already used numbers cant be used.

Conclusion

Hope you get the understanding of the PEP your can read more about PEP by visiting https://www.python.org/dev/peps/ and this article also inspired from there.If you have any doubt or conflict feel free to comment down.


Original Link: https://dev.to/pythonstories/what-is-pep-in-python-2aej

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To