Skip to main content

A python package that implements some rejected or withdrawn PEPs.

Project description

What is this?

PEPs (Python Enhancement Proposals) are a big feature of the Python programming language. Some are accepted, and some were not. This package implements some PEPs that were rejected or withdrawn.

Which PEPs are included?

PEPs included need to match these points:

  • It's not a syntax or major API change.
  • It's about code, not governance etc.
  • It can be implemented in pure Python code.

What PEPs are included now?

Finished

  • PEP 212 — Loop Counter Iteration
  • PEP 265 — Sorting Dictionaries by Value
  • PEP 276 — Simple Iterator for ints
  • PEP 303 — Extend divmod() for Multiple Divisors
  • PEP 326 — A Case for Top and Bottom Values
  • PEP 351 — The freeze protocol
  • PEP 416 — Add a frozendict builtin type
  • PEP 559 — Built-in noop()

Developing

  • PEP 211 — Adding A New Outer Product Operator
  • PEP 336 — Make None callable
  • PEP 3140str(container) should call str(item), not repr(item)

How do I use it?

Wiki is coming soon!

Quick example:

>>> import rejected_peps as rp
>>> rp.pep(559).noop()
>>> Min = rp.pep(326).Min
>>> Min < 3.14
True
>>> Min == -10, Min == Min
(False, True)
>>> rp.info(416)
pepinfo(number=416, title='Add a frozendict builtin type', status='Rejected', creation='2012-02-29', url='https://www.python.org/dev/peps/pep-0416/')
>>> rp.SUPPORTED
frozenset({416, 326, 265, 303, 559, 212, 276, 351})
>>> 

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rejected-peps-0.2.0a5.tar.gz (7.4 kB view hashes)

Uploaded Source

Built Distribution

rejected_peps-0.2.0a5-py3-none-any.whl (9.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page