11This is Python version 3.14.10+
22===============================
33
4+ .. image :: https://github.com/sidlovescoding/Cpython/actions/workflows/sid-python.yml/badge.svg?branch=sid-python
5+ :alt: sid-python build status on GitHub Actions
6+ :target: https://github.com/sidlovescoding/Cpython/actions/workflows/sid-python.yml
7+
48.. image :: https://github.com/python/cpython/actions/workflows/build.yml/badge.svg?branch=main&event=push
59 :alt: CPython build status on GitHub Actions
610 :target: https://github.com/python/cpython/actions
@@ -20,6 +24,82 @@ See the end of this file for further copyright and license information.
2024
2125.. contents ::
2226
27+ sid-python: changes from official Python
28+ ----------------------------------------
29+
30+ This is **sid-python **, a personal version of CPython 3.14. It is still
31+ installed and run as ``python ``; ``sys.version `` ends with ``(sid-python) ``.
32+ Everything below is in addition to official Python 3.14, and each change has
33+ tests.
34+
35+ New built-in functions
36+ ^^^^^^^^^^^^^^^^^^^^^^
37+
38+ - ``clamp(value, lo, hi) `` limits *value * to the range *lo * to *hi *:
39+ ``clamp(15, 0, 10) `` returns ``10 ``.
40+ - ``flatten(iterable) `` returns a flat list of the items of nested
41+ iterables: ``flatten([1, [2, [3]]]) `` returns ``[1, 2, 3] ``. Strings and
42+ bytes are kept whole.
43+
44+ New ``extras `` module
45+ ^^^^^^^^^^^^^^^^^^^^^
46+
47+ Everyday helpers: ``unique() ``, ``first() ``, ``group_by() `` (like
48+ ``Object.groupBy() `` in JavaScript), ``deep_get() ``, ``human_size() ``,
49+ ``slugify() `` and the ``timer `` context manager. See
50+ ``Doc/library/extras.rst ``.
51+
52+ New REPL commands
53+ ^^^^^^^^^^^^^^^^^
54+
55+ In the interactive interpreter, type ``history `` to list recent input or
56+ ``help-me `` for a list of commands and keyboard shortcuts.
57+
58+ Bug fixes
59+ ^^^^^^^^^
60+
61+ These fix open bugs from the `CPython issue tracker
62+ <https://github.com/python/cpython/issues> `_ that are not yet fixed in
63+ official Python:
64+
65+ - `gh-59598 <https://github.com/python/cpython/issues/59598 >`_:
66+ ``json.JSONDecoder.raw_decode() `` skips leading whitespace.
67+ - `gh-105426 <https://github.com/python/cpython/issues/105426 >`_:
68+ ``gzip.GzipFile `` can seek backwards when the gzip data does not start at
69+ the beginning of the file.
70+ - `gh-106980 <https://github.com/python/cpython/issues/106980 >`_:
71+ ``tarfile `` gives a clear error instead of "seeking backwards is not
72+ allowed" when a link in a stream cannot be extracted.
73+ - `gh-108931 <https://github.com/python/cpython/issues/108931 >`_:
74+ ``http.cookiejar `` removes expired cookies stored without a leading dot.
75+ - `gh-110501 <https://github.com/python/cpython/issues/110501 >`_:
76+ ``mailbox `` strips any line ending from the "From " line.
77+ - `gh-111066 <https://github.com/python/cpython/issues/111066 >`_: setting
78+ the ``memo `` of the C ``pickle.Unpickler `` keeps its entries and no longer
79+ crashes with an empty dict.
80+ - `gh-131715 <https://github.com/python/cpython/issues/131715 >`_:
81+ ``http.server.BaseHTTPRequestHandler.end_headers() `` works before any
82+ header is sent.
83+ - `gh-141998 <https://github.com/python/cpython/issues/141998 >`_: text typed
84+ for ``input() `` in the REPL is not syntax highlighted.
85+ - `gh-161222 <https://github.com/python/cpython/issues/161222 >`_:
86+ ``email.utils.encode_rfc2231() `` no longer writes ``None `` as the charset.
87+ - `gh-161289 <https://github.com/python/cpython/issues/161289 >`_:
88+ ``reprlib `` truncation accounts for a custom ``fillvalue ``.
89+ - `gh-161452 <https://github.com/python/cpython/issues/161452 >`_:
90+ ``python -m random N `` prints an integer for an integer *N * <= 0.
91+
92+ Documentation fixes for ``os.remove() `` (gh-121509),
93+ ``types.MappingProxyType `` (gh-117956) and the ``FOR_ITER `` bytecode
94+ (gh-121399) are included too.
95+
96+ Testing
97+ ^^^^^^^
98+
99+ Every push to the ``sid-python `` branch builds it and runs the full test
100+ suite on Linux, macOS and Windows (``.github/workflows/sid-python.yml ``).
101+
102+
23103General Information
24104-------------------
25105
0 commit comments