https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
94daf39 Fix markup buglet in Doc/howto/annotations.rst (#29802) 26 November 2021, 22:10:01 UTC
9a7611a bpo-45866: Fix typo in the NEWS entry (GH-29798) 26 November 2021, 21:56:25 UTC
4ebde73 bpo-40280: Move hard-coded feature checks to configure (GH-29789) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> 26 November 2021, 18:36:48 UTC
b0b10e1 bpo-45019: Cleanup module freezing and deepfreeze (#29772) 26 November 2021, 16:50:54 UTC
765b2a3 bpo-45886: Fix OOT build when srcdir has frozen module headers (GH-29793) The presence of frozen module headers in srcdir interfers with OOT build. Make considers headers in srcdir up to date, but later builds do not use VPATH to locate files. make clean now removes the headers, too. Also remove stale ``_bootstrap_python`` from .gitignore. 26 November 2021, 16:05:16 UTC
8caceb7 bpo-40280: Add configure check for socket shutdown (GH-29795) 26 November 2021, 14:16:54 UTC
db671b0 bpo-45760: Remove PyNumber_InMatrixMultiply (GH-29751) 26 November 2021, 14:10:10 UTC
d224e76 bpo-40280: clean and ignore .wasm files (GH-29794) 26 November 2021, 13:29:46 UTC
253b7a0 bpo-45866: pegen strips directory of "generated from" header (GH-29777) "make regen-all" now produces the same output when run from a directory other than the source tree: when building Python out of the source tree. 26 November 2021, 10:50:34 UTC
ee1e2c6 bpo-40280: Use Setup.stdlib static for wasm builds (GH-29784) ``Modules/Setup.stdlib`` contains ``Setup`` lines for all stdlib extension modules for which ``configure`` has detected their dependencies. The file is not used yet and still under development. To use the file, do ``ln -sfr Modules/Setup.stdlib Modules/Setup.local``. 26 November 2021, 07:26:49 UTC
cd876c8 bpo-45619: documentation of execution model: clarify and update binding summary (#29232) This does two changes that are quite related. 0. it add that variable binding can occur in pattern matching, an update of 3.10 which seems to have been omitted from the list of bindings 1. Given how long the sentence already was, with even subcases in the middle of the sentence, the commit breaks the sentence into an actual list. 26 November 2021, 05:19:06 UTC
93c65df bpo-44353: Correct docstring for `NewType` (#29785) The docstring for `typing.NewType` is no longer strictly accurate, now that `NewType` is a class, rather than a function 26 November 2021, 04:55:15 UTC
97dcab7 bpo-43137: webbrowser: Replace gvfs-open and gnome-open with "gio open" (GH-29154) * [bpo-43137](): webbrowser: Prefer gio open over gvfs-open gvfs-open(1) was superseded by gio(1) in 2015, and removed from GNOME releases in 2018. Debian and its derivatives like Ubuntu currently still have a compatibility shim for gvfs-open, but we plan to remove it. webbrowser prefers xdg-settings and xdg-open over gvfs-open, so this will only have any practical effect on systems where the xdg-utils package is not installed. Note that we don't check for GNOME_DESKTOP_SESSION_ID before using gio. gio does the right thing on any desktop environment that follows freedesktop.org specifications, similar to xdg-settings, so it's unnecessary to guard in this way. GNOME_DESKTOP_SESSION_ID was deprecated in 2008 and removed from upstream gnome-session in 2018 (it's still present in Debian/Ubuntu for backward compatibility, but probably shouldn't be). The replacement way to detect a desktop environment is the XDG_CURRENT_DESKTOP environment variable, which is a colon-separated sequence where the first item is the current desktop environment and the second and subsequent items (if present) are other desktop environments that it resembles or is based on. Resolves: * [bpo-43137](): webbrowser: Never invoke gnome-open gnome-open was part of GNOME 2, which was superseded in around 2010 and is unmaintained. The replacement was gvfs-open, which was subsequently replaced by gio(1) (as used in the previous commit). * [bpo-43137](): webbrowser: Don't run gvfs-open on GNOME gvfs-open was deprecated in 2015 and removed in 2018. The replacement is gio(1) (as used in a previous commit). GNOME_DESKTOP_SESSION_ID was deprecated in 2008 and removed in 2018. The replacement is XDG_CURRENT_DESKTOP (as mentioned in a previous commit). --- To test this on a typical modern Linux system, it is necessary to disable the `xdg-settings` and `xdg-open` code paths, for example with this hack: <details><summary>Hack to disable use of xdg-settings and xdg-open</summary> ```diff diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py index 3244f206aa..8f6c09d1d2 100755 --- a/Lib/webbrowser.py +++ b/Lib/webbrowser.py @@ -459,7 +459,7 @@ def open(self, url, new=0, autoraise=True): def register_X_browsers(): # use xdg-open if around - if shutil.which("xdg-open"): + if 0 and shutil.which("xdg-open"): register("xdg-open", None, BackgroundBrowser("xdg-open")) # Opens an appropriate browser for the URL scheme according to @@ -549,7 +549,7 @@ def register_standard_browsers(): # Prefer X browsers if present if os.environ.get("DISPLAY") or os.environ.get("WAYLAND_DISPLAY"): try: - cmd = "xdg-settings get default-web-browser".split() + cmd = "false xdg-settings get default-web-browser".split() raw_result = subprocess.check_output(cmd, stderr=subprocess.DEVNULL) result = raw_result.decode().strip() except (FileNotFoundError, subprocess.CalledProcessError, PermissionError, NotADirectoryError) : ``` </details> I haven't attempted to assess which of the specific web browsers such as Galeon are still extant, and which ones disappeared years ago. They could almost certainly be cleaned up, but that's beyond the scope of this PR. 25 November 2021, 20:49:48 UTC
1052a39 bpo-40280: Add wasm cross build targets (GH-29771) 25 November 2021, 20:24:40 UTC
dfcc6ff bpo-33393: Update config.guess and config.sub (GH-29781) 25 November 2021, 19:55:29 UTC
e0f8a3e Add missing 'await writer.drain()' call to example (GH-29162) Automerge-Triggered-By: GH:asvetlov 25 November 2021, 17:15:24 UTC
4dd8219 bpo-45568: Actually use @asynccontextmanager in usage example (GH-29151) Automerge-Triggered-By: GH:asvetlov 25 November 2021, 12:30:48 UTC
dc19e86 bpo-41498: Fix build on platforms without sigset_t (GH-29770) 25 November 2021, 11:28:41 UTC
c456dfa bpo-45711: use exc_value instead of exc_type to determine if exc_info is valid. Add more assertions. (GH-29627) 25 November 2021, 09:41:28 UTC
24c10d2 bpo-45727: Only trigger the 'did you forgot a comma' error suggestion if inside parentheses (GH-29757) 24 November 2021, 22:21:23 UTC
f4afc53 bpo-45893: Add missing extern C to initconfig.h (GH-29761) Co-authored-by: Steve Dower <steve.dower@python.org> 24 November 2021, 20:12:12 UTC
d71c7bc bpo-45693: Document `port` parameter to `loop.create_server` (GH-29760) Document the `port` parameter to `loop.create_server` in `asyncio`. In particular, note that if `host` resolves to multiple network interfaces, passing in `port=0` will result in a different random unused port being used for each interface. Automerge-Triggered-By: GH:ericvsmith 24 November 2021, 19:43:57 UTC
256f9c4 Fix typo in freeze_modules (#29744) 24 November 2021, 19:12:03 UTC
5c4b19e bpo-45020: Fix strict-prototypes warning (GH-29755) 24 November 2021, 19:01:39 UTC
abfc794 bpo-45822: Minor cleanups to the test_Py_CompileString test (GH-29750) 24 November 2021, 18:30:03 UTC
b30bf45 bpo-45881: Use CC from env first for cross building (GH-29752) 24 November 2021, 17:53:33 UTC
64c3807 bpo-45847: Fix _crypt detection on Ubuntu (GH-29743) 24 November 2021, 09:47:22 UTC
8af6481 bpo-45847: Port _uuid to PY_STDLIB_MOD (GH-29741) 24 November 2021, 09:20:37 UTC
d5cd2ef bpo-45514: Deprecate importlib resources legacy functions. (GH-29036) * bpo-45514: Apply changes from importlib_resources@a3ef4128c6 * Mark legacy functions as deprecated in the docs and link to the migration docs in importlib_resources docs. * Apply changes from importlib_resources@329ae9d5f2c. * Indicate importlib.resources as a module. Co-authored-by: Filipe Laíns <lains@riseup.net> 24 November 2021, 07:51:37 UTC
3245270 bpo-45847: Port _posixshmem to PY_STDLIB_MOD (GH-29738) 24 November 2021, 07:19:17 UTC
dd8ce9e bpo-45886: Allow overriding freeze command for cross compiling (GH-29735) 24 November 2021, 07:07:15 UTC
f9de97a bpo-45616: Let py.exe distinguish between v3.1 and v3.10 (GH-29731) 24 November 2021, 04:41:04 UTC
9cf5646 bpo-45847: Port _gdbm to PY_STDLIB_MOD (GH-29720) 23 November 2021, 21:58:38 UTC
b9e9292 bpo-45847: Port _ssl and _hashlib to PY_STDLIB_MOD (GH-29727) 23 November 2021, 21:58:13 UTC
095bc8f bpo-45847: Port _crypt to PY_STDLIB_MOD (GH-29725) 23 November 2021, 21:26:50 UTC
f840398 bpo-45873: Restore Python 3.6 compatibility (GH-29730) Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> 23 November 2021, 20:36:40 UTC
4ae26b9 bpo-39026: Fix Python.h when building with Xcode (GH-29488) Fix Python.h to build C extensions with Xcode: remove a relative include from Include/cpython/pystate.h. 23 November 2021, 17:58:57 UTC
5be98e5 bpo-45873: Get rid of bootstrap_python (#29717) Instead we use $(PYTHON_FOR_REGEN) .../deepfreeze.py with the frozen .h file as input, as we did for Windows in bpo-45850. We also get rid of the code that generates the .h files when make regen-frozen is run (i.e., .../make_frozen.py), and the MANIFEST file. Restore Python 3.8 and 3.9 as Windows host Python again Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> 23 November 2021, 16:56:06 UTC
ae1965c bpo-45703: Invalidate _NamespacePath cache on importlib.invalidate_ca… (GH-29384) Consider the following directory structure: . └── PATH1 └── namespace └── sub1 └── __init__.py And both PATH1 and PATH2 in sys path: $ PYTHONPATH=PATH1:PATH2 python3.11 >>> import namespace >>> import namespace.sub1 >>> namespace.__path__ _NamespacePath(['.../PATH1/namespace']) >>> ... While this interpreter still runs, PATH2/namespace/sub2 is created: . ├── PATH1 │ └── namespace │ └── sub1 │ └── __init__.py └── PATH2 └── namespace └── sub2 └── __init__.py The newly created module cannot be imported: >>> ... >>> namespace.__path__ _NamespacePath(['.../PATH1/namespace']) >>> import namespace.sub2 Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'namespace.sub2' Calling importlib.invalidate_caches() now newly allows to import it: >>> import importlib >>> importlib.invalidate_caches() >>> namespace.__path__ _NamespacePath(['.../PATH1/namespace']) >>> import namespace.sub2 >>> namespace.__path__ _NamespacePath(['.../PATH1/namespace', '.../PATH2/namespace']) This was not previously possible. 23 November 2021, 15:38:02 UTC
8ed1495 bpo-45783: Preserve file moves and deletions in the tests for the freeze tool. (GH-29527) Use shutil.copytree rather than Git, which might be missing (or configured differently) when testing Python built from a source release. 23 November 2021, 13:43:40 UTC
b48ac6f bpo-45878: convert `try/except` to `self.assertRaises` in `Lib/ctypes/test/test_functions.py` (GH-29721) 23 November 2021, 11:12:13 UTC
2c047f6 Clarify that discutils.(plat)include is for CPython's headers (GH-29578) Change the docs to note that "include" and "platinclude" are for CPython's headers, and not necessarily for headers of third-party libraries. See discussion in: https://discuss.python.org/t/clarification-on-a-wheels-header-data/9305/19 23 November 2021, 10:28:14 UTC
135cabd bpo-44525: Copy free variables in bytecode to allow calls to inner functions to be specialized (GH-29595) * Make internal APIs that take PyFrameConstructor take a PyFunctionObject instead. * Add reference to function to frame, borrow references to builtins and globals. * Add COPY_FREE_VARS instruction to allow specialization of calls to inner functions. 23 November 2021, 09:53:24 UTC
d82f2ca bpo-45847: Port _socket to PY_STDLIB_MOD (GH-29713) 23 November 2021, 07:52:05 UTC
758a23d bpo-45847: Fix xxlimited and xxlimited_35 build conditions (GH-29715) 23 November 2021, 07:51:30 UTC
457e6a6 bpo-45561: Run smelly.py tool from $(srcdir) (GH-29138) 23 November 2021, 07:51:02 UTC
0242094 bpo-42238: [doc] Announce the future removal of make suspicous. (GH-29652) * bpo-42238: [doc] Announce the future removal of make suspicous. * Add a news entry. 22 November 2021, 23:17:54 UTC
2dc7d3d bpo-45847: Port xxlimited and xxlimited_35 to PY_STDLIB_MOD (GH-29707) 22 November 2021, 20:27:05 UTC
1037ca5 bpo-45850: Implement deep-freeze on Windows (#29648) Implement changes to build with deep-frozen modules on Windows. Note that we now require Python 3.10 as the "bootstrap" or "host" Python. This causes a modest startup speed (around 7%) on Windows. 22 November 2021, 18:09:48 UTC
4d6c0c0 bpo-45871: Refactor except matcher validation into a separate function so that it can be reused. Add missing unit test. (GH-29711) 22 November 2021, 16:56:23 UTC
0e1c2f3 bpo-45847: port _struct to PY_STDLIB_MOD (GH-29706) 22 November 2021, 14:58:43 UTC
4fad314 bpo-45859: Mark test_field_descriptor in test_collections as CPython-only (GH-29691) 22 November 2021, 14:44:57 UTC
eee683c bpo-45847: Port audioop, _csv, and _posixsubprocess to PY_STDLIB_MOD_SIMPLE (GH-29705) Automerge-Triggered-By: GH:tiran 22 November 2021, 14:37:25 UTC
c6dec7e bpo-45847: Port nis module to PY_STDLIB_MOD (GH-29699) 22 November 2021, 14:18:41 UTC
7fd92a8 bpo-45813: Make sure that frame->generator is NULLed when generator is deallocated. (GH-29700) 22 November 2021, 14:01:23 UTC
d9cedab bpo-45847: Port compression libs to PY_STDLIB_MOD (GH-29702) 22 November 2021, 13:52:29 UTC
b451673 bpo-45847: Port mmap, select, and _xxsubinterpreters to Py_STDLIB_MOD (GH-29703) 22 November 2021, 13:49:58 UTC
d3062f6 bpo-44649: Fix dataclasses(slots=True) with a field with a default, but init=False (GH-29692) Special handling is needed, because for non-slots dataclasses the instance attributes are not set: reading from a field just references the class's attribute of the same name, which contains the default value. But this doesn't work for classes using __slots__: they don't read the class's attribute. So in that case (and that case only), initialize the instance attribute. Handle this for both normal defaults, and for fields using default_factory. 22 November 2021, 13:26:12 UTC
5b946ca bpo-45847: Port fcntl to Py_STDLIB_MOD (GH-29696) Co-authored-by: Christian Heimes <christian@python.org> 22 November 2021, 13:02:27 UTC
29699a2 bpo-45847: Various PY_STDLIB_MOD cleanups (GH-29697) 22 November 2021, 11:09:14 UTC
39f7d2f bpo-45847: Port _lfprof, _opcode, _asyncio, _queue, _statistics, and _typing to PY_STDLIB_MOD_SIMPLE (GH-29690) Automerge-Triggered-By: GH:tiran 22 November 2021, 09:57:50 UTC
512dbf6 Fix out-of-tree build support for multissltest (GH-29694) 22 November 2021, 09:50:53 UTC
718cee0 bpo-45847: Port _bisect, _heapq, _json, _pickle, _random, and _zoneinfo to PY_STDLIB_MOD_SIMPLE (GH-29689) Automerge-Triggered-By: GH:tiran 22 November 2021, 08:45:41 UTC
133c65a bpo-45847: Port array, _contextvars, math, and cmath to PY_STDLIB_MOD_SIMPLE (GH-29688) 22 November 2021, 08:05:36 UTC
db2277a bpo-45723: Add helpers for save/restore env (GH-29637) 22 November 2021, 08:05:06 UTC
d2b55b0 bpo-45766: Add direct proportion option to linear_regression(). (#29490) * bpo-45766: Add direct proportion option to linear_regression(). * Update 2021-11-09-09-18-06.bpo-45766.dvbcMf.rst * Use ellipsis to avoid round-off issues. * Update Misc/NEWS.d/next/Library/2021-11-09-09-18-06.bpo-45766.dvbcMf.rst Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> * Update signature in main docs * Fix missing comma Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> 21 November 2021, 14:39:26 UTC
2afa1a1 bpo-45847: Port codecs and unicodedata to PY_STDLIB_MOD (GH-29685) 21 November 2021, 13:08:47 UTC
f201d26 bpo-45847: Port grp, spwd, termios, resource, syslog to PY_STDLIB_MOD (GH-29668) 21 November 2021, 09:45:31 UTC
4f006a7 Ensure the str member of the tokenizer is always initialised (GH-29681) 21 November 2021, 02:06:39 UTC
4cf6524 Reactivate primary mechanism to retrieve frames in the gdb helpers (GH-29682) 21 November 2021, 02:06:16 UTC
c9c4444 Refactor parser compilation units into specific components (GH-29676) 21 November 2021, 01:08:50 UTC
f7638dd Added kw_only parameter to make_dataclasses. (GH-29679) 20 November 2021, 23:25:56 UTC
fdc0e09 bpo-44733: Add max_tasks_per_child to ProcessPoolExecutor (GH-27373) Co-authored-by: Antoine Pitrou <antoine@python.org> 20 November 2021, 20:19:41 UTC
123a352 bpo-45845: Change link for pyserial (GH-29675) 20 November 2021, 19:56:42 UTC
81f4e11 bpo-45811: Improve error message when source code contains invisible control characters (GH-29654) 20 November 2021, 18:28:28 UTC
7a1d932 bpo-45450: Improve syntax error for parenthesized arguments (GH-28906) 20 November 2021, 18:27:40 UTC
9852339 bpo-44844: Remove unresponsive web link (GH-29651) Threading notes by Aahz from OSCON 2001. 20 November 2021, 18:21:14 UTC
79ff0d1 bpo-45494: Fix error location in EOF tokenizer errors (GH-29108) 20 November 2021, 17:40:59 UTC
48744db bpo-45852: Fix the Counter/iter test for statistics.mode() (GH-29667) Suggested by Stefan Pochmann. 20 November 2021, 17:01:09 UTC
ee49484 [doc] Clarify MRO precedence in descriptor super binding section (GH-29539) A similar sentence is present in the 'Invocation from super' section of the descriptor HOWTO, where it is already correct. 20 November 2021, 16:55:35 UTC
04e03f4 bpo-45851: Avoid full sort in statistics.multimode() (#29662) Suggested by Stefan Pochmann. 20 November 2021, 16:04:37 UTC
ef53058 bpo-42158: Add MIME types for n-triples, n-quads, n3 and trig (GH-23230) Co-authored-by: Éric Araujo <merwok@netwok.org> 20 November 2021, 15:52:00 UTC
f36c69a bpo-45847: Port test modules to PY_STDLIB_MOD (GH-29660) 20 November 2021, 15:43:10 UTC
fdcc46d bpo-45848: Allow the parser to get error lines from encoded files (GH-29646) 20 November 2021, 14:36:07 UTC
6d430ef bpo-45774: Fix SQLite load extension autodetection (GH-29659) 20 November 2021, 14:02:52 UTC
bc2bc0d bpo-45846: Fix capitalisation of Van Rossum at the start of sentence (GH-29641) 20 November 2021, 09:35:39 UTC
5596909 bpo-45847: Port _scproxy to PY_STDLIB_MOD (GH-29644) 20 November 2021, 09:18:48 UTC
be36e06 bpo-45250: fix docs regarding `__iter__` and iterators being inconsistently required by CPython (GH-29170) It is now considered a historical accident that e.g. `for` loops and the `iter()` built-in function do not require the iterators they work with to define `__iter__`, only `__next__`. 20 November 2021, 00:40:34 UTC
4c61691 bpo-45506: Fix test_embed expecting to not find stdlib in source tree build when stdlib has been installed. (GH-29649) 20 November 2021, 00:11:40 UTC
546cefc bpo-45727: Make the syntax error for missing comma more consistent (GH-29427) 19 November 2021, 23:11:57 UTC
c8c21bd bpo-45847: Port builtin hashlib extensions to PY_STDLIB_MOD (GH-29642) 19 November 2021, 19:20:32 UTC
e34809e bpo-19072: Classmethod can wrap other classmethod like descriptors (GH-29634) staticmethod() also became callable in Python 3.10. See: b83861f02. 19 November 2021, 18:43:49 UTC
d32316a bpo-42238: [doc]: Hide false positive in make suspicious. (GH-29636) 19 November 2021, 18:11:24 UTC
0ff3d95 bpo-45507: EOFErrors should be thrown for truncated gzip members (GH-29029) 19 November 2021, 18:07:05 UTC
7e44dc0 bpo-45573: Move mandatory core modules to Modules/Setup.bootstrap (GH-29616) 19 November 2021, 15:40:57 UTC
d64659d Fix link to exception handling notes (GH-29617) 19 November 2021, 15:40:18 UTC
337cb48 bpo-45709: Fix tracing when exception is handled. (GH-29638) 19 November 2021, 15:16:49 UTC
29e5874 bpo-45774: Autoconfiscate SQLite detection (GH-29507) Co-authored-by: Christian Heimes <christian@python.org> 19 November 2021, 14:10:41 UTC
036fead bpo-45609: Specialize STORE_SUBSCR (GH-29242) * Specialize STORE_SUBSCR for list[int], and dict[object] * Adds _PyDict_SetItem_Take2 which consumes references to the key and values. 19 November 2021, 10:30:37 UTC
4575c01 bpo-45788: Link sys.prefix doc to 'Installation paths' (#29606) ... To the Installation paths section of the sysconfig doc. 18 November 2021, 20:08:24 UTC
back to top