Questions tagged [pep]

Python Enhancement Proposals are used to propose and document Python language features, development processes and best practices. Use [pep8] for questions about the style guide for Python code.

Python Enhancement Proposals are used to propose and document Python language features, development processes and best practices.

Some important PEPs are:

At a given moment, the status of a PEP can be any one of Draft, Deferred, Accepted, Rejected, Withdrawn, Accepted, Final or Replaced. Informational PEPs which are expected to continue being updated may alternatively have a status of Active.

This flowchart shows how the status of a PEP may evolve:

enter image description here

A public Mercurial repository contains a record of changes to PEPs.

Use for questions about the style guide for Python code.

243 questions
-3
votes
1 answer

what is pep 8? How does it help in programming? What are the set of rules regarding that?

what is the Full form and what it is used for? I was going through basics of python when I came across this term. what does it mean by maximum readability?
-3
votes
1 answer

How do you usually handle long-line code newline breaking in Python?

I have a long code looks like this: def to_representation(self, instance): res = super().to_representation(instance) res['receiver_phone_num'] = get_encryption_phone_num(instance.receiver_phone_num) if instance.receiver_phone_num else None …
Gorgine
  • 310
  • 2
  • 11
-3
votes
1 answer

how to use ternary operator to write this if statement

def get(count=None): if count >= 1: a = count - 1 else: a = 0 return a Everything is in the title.. Just for sport. Thank you
John Doe
  • 1,570
  • 3
  • 13
  • 22
1 2 3
16
17