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
int
s - PEP 281* – Loop Counter Iteration with
range
andxrange
- PEP 294 — Type Names in the types Module
- PEP 303 — Extend
divmod()
for Multiple Divisors - PEP 313* – Adding Roman Numeral
LiteralsFunctions to Python - PEP 326 — A Case for Top and Bottom Values
- PEP 335* – Overloadable Boolean
OperatorsOperator Functions - PEP 336 — Make
None
callable - PEP 349* – Allow
str()
to returnunicode stringsbytes - 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 3140 –
str(container)
should callstr(item)
, notrepr(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-1.0.0.dev2.tar.gz
(26.2 kB
view hashes)
Built Distributions
Close
Hashes for rejected_peps-1.0.0.dev2-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a25bfdf38a7fa8d88da5e2aa015edce205329e26a0d007287ec11ed85d175fc |
|
MD5 | 4fa061dd11eee1fed4f015710dffa73a |
|
BLAKE2b-256 | fa61d2d2b0bb8ae30cf9dcee91ea1e35878c445884f2839b7442027823c9407d |
Close
Hashes for rejected_peps-1.0.0.dev2-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d73ba7dda52a963d3cc01ddb58d4aedfee2f174f3967972552633e660b14b9dc |
|
MD5 | c7c8bec76ec6ae6d9246cdbfe7049428 |
|
BLAKE2b-256 | d9f2aa9fd1a73bdb08cbe347bc620b00afc4285a61b8fdbd7547bc1626708fca |
Close
Hashes for rejected_peps-1.0.0.dev2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f57b0f083fdc8cdf5a9413ba3815adf98cfbee6f3932681cd6673e9e9d1ac23 |
|
MD5 | 8b3cea6f730c419b4bdee3048c790638 |
|
BLAKE2b-256 | 9ece2d079b0d79ce934c7747781ef1d583198b93680b17a965cba238ceb97c1a |
Close
Hashes for rejected_peps-1.0.0.dev2-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2acf6be618e21d7c7e1f4b5af11f57001748b42313587e825d6bc2270d9d3215 |
|
MD5 | 0df0649c691b1792df528ff0b8eb6fbd |
|
BLAKE2b-256 | 41155a1f4fafeb41b75520aadadb194fdb0ca6b80ba3c9ddbd59f25634895b33 |
Close
Hashes for rejected_peps-1.0.0.dev2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94e1f51ab86531a31d512018ff7b39ef95d21409855129b31209d8bc4ddee8ac |
|
MD5 | 818c1d3ad7a5e9d06a8139a58f304ded |
|
BLAKE2b-256 | f5275335ce8c18e96d7c5722768e47ee3b1a61d79faa14057cd8cc29d3312a89 |
Close
Hashes for rejected_peps-1.0.0.dev2-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97b8101f2aaa4c56b901d46c528ba63e3ad2eaa2089bccd44ec159581d5c5c01 |
|
MD5 | 1b6b85f66e91b0de1af03081816ef2e8 |
|
BLAKE2b-256 | 862d096aa0db101a4da875cbd26d6457f2416ae2c16cb09c7e513a6ea3a2d588 |
Close
Hashes for rejected_peps-1.0.0.dev2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b69c59cdab382566dfc10d15a4cee68153aa3a78b1976ce70ff2b7eb7ba89de2 |
|
MD5 | 61f9a6d34d1f58ca702610fc00560975 |
|
BLAKE2b-256 | 843dce83a8389bddfea530c1b7744df50d1ecd1d5cabd89e9c20cdb6919997b8 |
Close
Hashes for rejected_peps-1.0.0.dev2-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de35b6db63e359982ec3c64c885718fbec494da84d117dcb04763182b597db1a |
|
MD5 | 3bb93ac617a047cdc463a8cb341d33af |
|
BLAKE2b-256 | cb4be030b8d0d88573c0059f408b89d1b866ffda8632f61d599aea1ce42e171d |