Skip to main content

A Python package that implements some rejected, deferred or withdrawn PEPs.

Project description

What is this?

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

What PEPs are included?

A PEP included needs to match these points:

  • It's not a syntax or major API change, or has a simple and clear way to bypass it.

  • It's about code, not governance etc.

  • It can be implemented in pure Python code.

Parts related to the bytecode, C API etc. are not implemented.

Which PEPs are included now?

PEPs with an * are slightly modified.

Finished (20)

  • PEP 204 — Range Literals
  • PEP 211 — Adding A New Outer Product Operator
  • PEP 212 — Loop Counter Iteration
  • PEP 259 — Omit printing newline after newline
  • PEP 265 — Sorting Dictionaries by Value
  • PEP 276 — Simple Iterator for ints
  • PEP 281* – Loop Counter Iteration with range and xrange
  • PEP 294 — Type Names in the types Module
  • PEP 303 — Extend divmod() for Multiple Divisors
  • PEP 313* – Adding Roman Numeral Literals Functions to Python
  • PEP 326 — A Case for Top and Bottom Values
  • PEP 335* – Overloadable Boolean Operators Operator Functions
  • PEP 336 — Make None callable
  • PEP 349* – Allow str() to return unicode strings bytes
  • PEP 351 — The freeze protocol
  • PEP 416 — Add a frozendict builtin type
  • PEP 535 — Rich comparison chaining
  • PEP 559 — Built-in noop()
  • PEP 754 — IEEE 754 Floating Point Special Values
  • 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()   # Function call
>>> Min = rp.pep326.Min  # Module
>>> 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://peps.python.org/pep-0416/')
>>> rp.SUPPORTED
frozenset({259, 265, ..., 351, 754})
>>> 

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.9.8.tar.gz (22.9 kB view details)

Uploaded Source

File details

Details for the file rejected-peps-0.9.8.tar.gz.

File metadata

  • Download URL: rejected-peps-0.9.8.tar.gz
  • Upload date:
  • Size: 22.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for rejected-peps-0.9.8.tar.gz
Algorithm Hash digest
SHA256 e417c30bfc06c5307b6341dbd31772b954933c781b2f56f7195845314d5a873e
MD5 eff499a16d6aade0db720e155a2456d0
BLAKE2b-256 dd3235e553f1fb712c7e9cd53e70bf3f7a64f75b259e5c8f7c6406d569b4af36

See more details on using hashes here.

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