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.
Parts of bytecode, C API etc. are not implemented.
What PEPs are included now?
PEPs with a * are slightly changed.
Finished (18)
- 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 336 — Make
None
callable - PEP 349* – Allow
str()
to returnunicode stringsbytes - PEP 351 — The
freeze
protocol - PEP 416 — Add a
frozendict
builtin type - PEP 559 — Built-in
noop()
- PEP 754 — IEEE 754 Floating Point Special Values
- PEP 3140 –
str(container)
should callstr(item)
, notrepr(item)
Developing (1)
- PEP 335* – Overloadable Boolean
OperatorsOperator Functions
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://www.python.org/dev/peps/pep-0416/')
>>> rp.SUPPORTED
frozenset({416, 259, ..., 349, 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.4.2.tar.gz
(12.9 kB
view hashes)
Built Distribution
Close
Hashes for rejected_peps-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f56da955a810b21094a4b237bb37f188f7c69aabb97879f8ca5fe419e6f79e7 |
|
MD5 | 2d8bd712d94b13fbb418beba870a3d1f |
|
BLAKE2b-256 | de6dab4de64ce643d1dd229a5f6010abdf09ddc83fbca60e4387381eedb799ed |