https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
9471106 Python 3.11.0a4 13 January 2022, 19:38:15 UTC
1a4d1c1 bpo-46070: _PyGC_Fini() untracks objects (GH-30577) Py_EndInterpreter() now explicitly untracks all objects currently tracked by the GC. Previously, if an object was used later by another interpreter, calling PyObject_GC_UnTrack() on the object crashed if the previous or the next object of the PyGC_Head structure became a dangling pointer. 13 January 2022, 18:28:32 UTC
6be8489 bpo-44133: Link Python executable with object files (GH-30556) When Python is built without --enable-shared, the "python" program is now linked to object files, rather than being linked to the Python library (libpython.a), to make sure that all symbols are exported. Previously, the linker omitted some symbols like the Py_FrozenMain() function. When Python is configured with --without-static-libpython, the Python static library (libpython.a) is no longer built. * Check --without-static-libpython earlier in configure.ac * Add LINK_PYTHON_OBJS and LINK_PYTHON_DEPS variables to Makefile. * test_capi now ensures that the "Py_FrozenMain" symbol is exported. 13 January 2022, 18:24:28 UTC
0885999 bpo-46355: Document PyFrameObject and PyThreadState changes (GH-30558) Document PyFrameObject and PyThreadState changes in What's New in Python 3.11 and explain how to port code. 13 January 2022, 18:21:50 UTC
f779fac bpo-46358: modernize `test_asyncio` (GH-30562) 13 January 2022, 14:28:02 UTC
8c49d05 bpo-46359: Modernize `test_typing` by removing checks for EOL Python versions (GH-30563) Also removes unused tests meant for older versions of Python. 13 January 2022, 13:09:40 UTC
c590b58 bpo-46328: Add sys.exception() (GH-30514) 13 January 2022, 12:35:58 UTC
9c2ebb9 bpo-46344: Fix trace bug in else of try and try-star blocks (GH-30544) 13 January 2022, 12:34:38 UTC
443b308 bpo-40479: Fix hashlib's usedforsecurity for OpenSSL 3.0.0 (GH-30455) 13 January 2022, 08:46:38 UTC
a6ca8ee bpo-46315: Add ifdef HAVE_ feature checks for WASI compatibility (GH-30507) 13 January 2022, 08:46:04 UTC
1de6015 bpo-46345: Add a test case for implicit `Optional` class attribute (GH-30535) 12 January 2022, 23:35:44 UTC
ed57b36 bpo-45953: Statically allocate the main interpreter (and initial thread state). (gh-29883) Previously, the main interpreter was allocated on the heap during runtime initialization. Here we instead embed it into _PyRuntimeState, which means it is statically allocated as part of the _PyRuntime global. The same goes for the initial thread state (of each interpreter, including the main one). Consequently there are fewer allocations during runtime/interpreter init, fewer possible failures, and better memory locality. FYI, this also helps efforts to consolidate globals, which in turns helps work on subinterpreter isolation. https://bugs.python.org/issue45953 12 January 2022, 23:28:46 UTC
0bbf30e bpo-46342: make @typing.final introspectable (GH-30530) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> 12 January 2022, 19:38:25 UTC
e34c936 bpo-40280: Allow to compile _testcapi as builtin module (GH-30559) 12 January 2022, 19:27:37 UTC
fc05e6b bpo-46020: Optimize long_pow for the common case (GH-30555) This cuts a bit of overhead by not initializing the table of small odd powers unless it's needed for a large exponent. 12 January 2022, 18:55:02 UTC
e2a9c8e bpo-46348: modernize `test_typing` (GH-30547) 12 January 2022, 16:48:10 UTC
43839ba bpo-40280: Add --with-emscripten-target to build for browser or node (GH-30552) Co-authored-by: Ethan Smith <ethan@ethanhs.me> 12 January 2022, 15:08:19 UTC
be578e0 bpo-46347: Yet another fix in the erorr path of PyEval_EvalCodeEx (#30554) 12 January 2022, 00:35:19 UTC
20b5791 bpo-46347: Fix PyEval_EvalCodeEx to correctly cleanup in error paths (#30551) 11 January 2022, 23:37:09 UTC
08bc1ba bpo-46303: Fix fileutils.h compiler warnings (GH-30550) Add missing pycore_fileutils.h include in _tkinter.c and _testconsole.c. 11 January 2022, 23:35:26 UTC
607d8a8 bpo-46347: Fix memory leak in PyEval_EvalCodeEx. (#30546) First introduced in 0332e569c12d3dc97171546c6dc10e42c27de34b 11 January 2022, 22:25:28 UTC
dce642f bpo-46307: Add string.Template.get_identifiers() method (GH-30493) Add `string.Template.get_identifiers()` method that returns the identifiers within the template. By default, raises an error if it encounters an invalid identifier (like `substitute()`). The keyword-only argument `raise_on_invalid` can be set to `False` to ignore invalid identifiers (like `safe_substitute()`). Automerge-Triggered-By: GH:warsaw 11 January 2022, 19:15:42 UTC
cf496d6 bpo-45953: Statically allocate and initialize global bytes objects. (gh-30096) The empty bytes object (b'') and the 256 one-character bytes objects were allocated at runtime init. Now we statically allocate and initialize them. https://bugs.python.org/issue45953 11 January 2022, 16:37:24 UTC
6f05e1e [doc] Add license_url for python-docs-theme 2022.1. (GH-30527) 11 January 2022, 16:32:42 UTC
cedec19 bpo-46339: Fix crash in the parser when computing error text for multi-line f-strings (GH-30529) Automerge-Triggered-By: GH:pablogsal 11 January 2022, 16:30:39 UTC
43c5c13 closes bpo-46253: Change Py_UNICODE to Py_UCS4 in the C API docs to match the current source code (GH-30387) 11 January 2022, 14:33:06 UTC
73decdf Remove unused `Any` from `Concatenate` example in typing docs (GH-30516) 11 January 2022, 13:59:26 UTC
7357ac9 News item for issue 46314. (GH-30515) 11 January 2022, 11:29:48 UTC
bd04fac bpo-46331: Do not set line number of instruction storing doc-string. (GH-30518) 11 January 2022, 11:28:30 UTC
ea1a545 bpo-46303: Move fileutils.h private functions to internal C API (GH-30484) Move almost all private functions of Include/cpython/fileutils.h to the internal C API Include/internal/pycore_fileutils.h. Only keep _Py_fopen_obj() in Include/cpython/fileutils.h, since it's used by _testcapi which must not use the internal C API. Move EncodeLocaleEx() and DecodeLocaleEx() functions from _testcapi to _testinternalcapi, since the C API moved to the internal C API. 11 January 2022, 10:56:16 UTC
fc75bfb bpo-46310: simplify `for` loop in `asyncio/windows_events` (GH-30334) 11 January 2022, 10:51:34 UTC
e13cdca bpo-46205: exit if no workers are alive in runtest_mp (GH-30470) 11 January 2022, 03:03:09 UTC
081a214 bpo-46244: Remove __slots__ from typing.TypeVar, .ParamSpec (#30444) * add missing __slots__ to typing._TypeVarLike * add news entry * remove slots from _TypeVarLike base classes * cleanup diff * fix broken link in blurb 10 January 2022, 23:43:39 UTC
6223cbf bpo-45331: [Enum] add rule to docs that mixin type must be subclassable (GH-30521) 10 January 2022, 23:42:45 UTC
13e4659 bpo-46327: [Enum] remove skipped tests (GH-30512) 10 January 2022, 19:12:34 UTC
582286d bpo-46301: [Enum] fix refleak tests (GH30510) 10 January 2022, 19:09:00 UTC
0d63967 bpo-46332: use raise..from instead of assigning __cause__ and raising (GH-30517) 10 January 2022, 18:59:21 UTC
ec0c392 bpo-46314: Remove extra RESUME when compiling a lamdba. (GH-30513) 10 January 2022, 12:29:02 UTC
d24cd49 bpo-46270: Describe the `in` and `not in` operators as membership tests. (GH-30504) 10 January 2022, 02:02:06 UTC
0b2b9d2 bpo-23882: unittest: Drop PEP 420 support from discovery. (GH-29745) 10 January 2022, 01:38:33 UTC
1bee9a4 bpo-46272: Fix two heading comments in python.gram (GH-30499) One typo fix and one heading change, both in comments. No functional changes. 09 January 2022, 16:22:54 UTC
2d78797 bpo-37295: Use constant-time comb() and perm() for larger n depending on k (GH-30305) 09 January 2022, 13:32:25 UTC
5c66414 bpo-40280: Disable epoll_create in Emscripten config.site (GH-30494) Co-authored-by: nick.pope@infogrid.io 09 January 2022, 10:58:59 UTC
0ea2ef5 Add a (conservative) timeout for Windows builds on GitHub Actions (GH-30301) 09 January 2022, 10:28:34 UTC
3d11c1b bpo-46308: Fix unportable test(1) operator in configure script (GH-30490) 09 January 2022, 00:54:13 UTC
0fc58c1 bpo-46306: simplify `CodeType` attribute access in `doctest.py` (GH-30481) Assume co_firstlineno always exists on types.CodeType objects. Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> 08 January 2022, 20:13:42 UTC
8d59d25 bpo-46301: [Enum] test uncomparable values in `_convert_` (GH-30472) add tests that cover different types, and same non-comparable types 08 January 2022, 19:43:42 UTC
b6aa38f bpo-46261: Update `sqlite3.Cursor.lastrowid` docs (GH-30407) 08 January 2022, 19:17:09 UTC
ef5376e bpo-46290: Fix parameter names in dataclasses docs (GH-30450) 08 January 2022, 10:56:35 UTC
45d44b9 bpo-46299: Improve test_descr (GH-30475) 08 January 2022, 08:14:40 UTC
e63066c bpo-46299: improve `test_descr.py` with stricter error handling (GH-30471) 08 January 2022, 03:51:51 UTC
ad1d590 bpo-46235: Do all ref-counting at once during list/tuple multiplication (GH-30346) When multiplying lists and tuples by `n`, increment each element's refcount, by `n`, just once. Saves `n-1` increments per element, and allows for a leaner & faster copying loop. Code by sweeneyde (Dennis Sweeney). 08 January 2022, 03:47:58 UTC
6fa8b2c bpo-46237: Fix the line number of tokenizer errors inside f-strings (GH-30463) 08 January 2022, 00:23:40 UTC
d81182b bpo-46217: Revert use of Windows constant that is newer than what we support (GH-30473) 08 January 2022, 00:06:53 UTC
c9dc1f4 bpo-46297: Fix interpreter crash on startup with multiple PythonPaths set in registry (GH-30466) 07 January 2022, 22:26:00 UTC
74d1663 bpo-46296: [Enum] add a test for missing `value` recovery (GH-30458) In `__set_name__` there is a check for the `_value_` attribute and an attempt to add it if missing; this adds a test to cover the case for simple enums with a custom `__new__` method. 07 January 2022, 21:44:21 UTC
d382f7e bpo-46289: Make conversion of FormattedValue not optional on ASDL (GH-30467) Automerge-Triggered-By: GH:isidentical 07 January 2022, 21:05:28 UTC
6d07a9f bpo-28546: [doc] Clarify setting pdb breakpoints (GH-30360) Co-authored-by: Ian Kelling <ian@iankelling.org> 07 January 2022, 19:41:23 UTC
273cb8e bpo-24650: Use full term "generator function" in yield expressions docs (GH-24663) 07 January 2022, 18:39:40 UTC
9b7aa6a bpo-46216: remove spurious link to os.system() from os.time() documentation (GH-30326) Automerge-Triggered-By: GH:iritkatriel 07 January 2022, 18:28:08 UTC
b127e70 bpo-46070: Fix asyncio initialisation guard (GH-30423) If init flag is set, exit successfully immediately. If not, only set the flag after successful initialization. 07 January 2022, 14:08:19 UTC
994f90c bpo-45723: Fix detection of epoll (#30449) 07 January 2022, 08:15:20 UTC
f4e325c bpo-41011: venv -- add more variables to pyvenv.cfg (GH-30382) 07 January 2022, 06:50:30 UTC
46c7a65 bpo-46251: Add 'Security Considerations' section to logging configura… (GH-30411) 06 January 2022, 22:35:08 UTC
c9137d4 bpo-46263: Fix second location that needs MALLOC_CONF on FreeBSD (GH-30440) Automerge-Triggered-By: GH:tiran 06 January 2022, 19:49:03 UTC
16dfabf bpo-46286: use the new POP_JUMP_IF_NOT_NONE opcode to simplify except* (GH-30439) Automerge-Triggered-By: GH:iritkatriel 06 January 2022, 19:43:16 UTC
9c5fa9c bpo-46208: Fix normalization of relative paths in _Py_normpath()/os.path.normpath (GH-30362) 06 January 2022, 19:13:10 UTC
9925e70 bpo-45292: [PEP-654] exception groups and except* documentation (GH-30158) 06 January 2022, 19:05:34 UTC
68c76d9 bpo-46263: Do not ever expect "use_frozen_modules" to be -1. (gh-30438) The condition is no longer valid. This should resolve the buildbot failure on FreeBSD. https://bugs.python.org/issue46263 06 January 2022, 18:56:13 UTC
a4aa52d bpo-46263: FreeBSD 14.0 jemalloc workaround for junk bytes of freed memory (GH-30434) Automerge-Triggered-By: GH:tiran 06 January 2022, 15:14:49 UTC
b50e5e9 bpo-46278: fix typo introduced in GH-30427 (GH-30430) Automerge-Triggered-By: GH:asvetlov 06 January 2022, 13:21:24 UTC
e028ae9 bpo-45923: Handle call events in bytecode (GH-30364) * Add a RESUME instruction to handle "call" events. 06 January 2022, 13:09:25 UTC
3e43fac Reflect 'context' arg in 'AbstractEventLoop.call_*()' methods (GH-30427) 06 January 2022, 12:31:32 UTC
3db762d bpo-46031: add POP_JUMP_IF_NOT_NONE and POP_JUMP_IF_NONE (GH-30019) 06 January 2022, 11:38:35 UTC
35d6540 bpo-46006: Revert "bpo-40521: Per-interpreter interned strings (GH-20085)" (GH-30422) This reverts commit ea251806b8dffff11b30d2182af1e589caf88acf. Keep "assert(interned == NULL);" in _PyUnicode_Fini(), but only for the main interpreter. Keep _PyUnicode_ClearInterned() changes avoiding the creation of a temporary Python list object. 06 January 2022, 07:53:44 UTC
e5894ca bpo-46266: Add calendar day of week constants to __all__ (GH-30412) 05 January 2022, 20:21:04 UTC
817a6bc bpo-46269: [Enum] remove special-casing of `__new__` in `EnumType.__dir__` (GH-30421) 05 January 2022, 17:06:02 UTC
43aac29 bpo-46257: Convert statistics._ss() to a single pass algorithm (GH-30403) 05 January 2022, 15:39:10 UTC
46e4c25 bpo-46236: Fix PyFunction_GetAnnotations() returned tuple. (GH-30409) Automerge-Triggered-By: GH:pablogsal 05 January 2022, 12:25:54 UTC
dd50316 bpo-43137: Revert "webbrowser: Don't run gvfs-open on GNOME" (GH-30417) gvfs-open was deprecated in 2015 and removed in 2018, but its replacement, gio(1), is not available in Ubuntu 16.04, which is apparently still supported by CPython upstream even though it is considered to be EOL by Ubuntu developers. Signed-off-by: Simon McVittie <smcv@debian.org> 05 January 2022, 11:53:23 UTC
332e6b9 bpo-45256: Don't track the exact depth of each `InterpreterFrame` (GH-30372) 05 January 2022, 11:30:26 UTC
cae5554 bpo-46263: Don't use MULTIARCH on FreeBSD (#30410) 05 January 2022, 09:54:17 UTC
91bc6f9 bpo-46262: [Enum] test error path in `Flag._missing_` (GH-30408) add tests that exercise the `_missing_` error path for `Flag` and `IntFlag` Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Ethan Furman <ethan@stoneleaf.us> 05 January 2022, 00:11:06 UTC
31e43cb bpo-46009: Remove GEN_START (GH-30367) 04 January 2022, 19:38:32 UTC
f404e26 Fix missing "," in the documentation of Executor Objects (GH-30404) 04 January 2022, 18:48:04 UTC
7537f60 bpo-45609: More specialization stats for STORE_SUBSCR (GH-30193) 04 January 2022, 18:05:09 UTC
7d7817c bpo-20369: concurrent.futures.wait() now deduplicates futures given a… (GH-30168) * bpo-20369: concurrent.futures.wait() now deduplicates futures given as arg. * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> 04 January 2022, 13:36:13 UTC
b949845 bpo-33252: Document that ResourceWarning is ignored by default (GH-30358) `ResourceWarning` is ignored by default. Document this behaviour, for consistency with others in this table such as `DeprecationWarning`. Documentation PR can skip NEWS file. Automerge-Triggered-By: GH:iritkatriel 04 January 2022, 11:34:31 UTC
e09d94a bpo-46231: Remove invalid_* rules preceded by more tokens from the grammar docs (GH-30341) 04 January 2022, 10:42:15 UTC
70f415f bpo-46240: Correct the error for unclosed parentheses when the tokenizer is not finished (GH-30378) 04 January 2022, 10:41:22 UTC
a94461d bpo-46202: Remove opcode POP_EXCEPT_AND_RERAISE (GH-30302) * bpo-46202: remove opcode POP_EXCEPT_AND_RERAISE * do not assume that an exception group is truthy 04 January 2022, 10:37:12 UTC
a09062c bpo-44092: Move What's New entry to where it belongs (GH-30381) 04 January 2022, 09:36:30 UTC
bef4883 Update old-style strings to f-strings (GH-30384) Let me know if this sort of change is unwanted... 04 January 2022, 09:25:56 UTC
5a2a650 bpo-46239: improve error message when importing `asyncio.windows_events` (GH-30353) 04 January 2022, 08:44:26 UTC
1b11133 bpo-46238: reuse `_winapi` constants in `asyncio.windows_events` (GH-30352) 04 January 2022, 08:42:19 UTC
3aa5242 bpo-46233: Minor speedup for bigint squaring (GH-30345) x_mul()'s squaring code can do some redundant and/or useless work at the end of each digit pass. A more careful analysis of worst-case carries at various digit positions allows making that code leaner. 04 January 2022, 02:41:16 UTC
f1a5844 bpo-44092: Remove unused member `reset` from `sqlite3.Cursor` (GH-30377) Automerge-Triggered-By: GH:pablogsal 03 January 2022, 23:47:16 UTC
2db5613 bpo-34538: Remove Exception subclassing from tutorial (GH-30361) Remove the bit about subclassing exceptions. Documentation PR can skip the NEWS label. Automerge-Triggered-By: GH:iritkatriel 03 January 2022, 22:52:09 UTC
770f43d Add doctest and improve readability for move_to_end() example. (#30370) 03 January 2022, 22:26:08 UTC
51700bf bpo-34931: [doc] clarify behavior of os.path.splitext() on paths with multiple leading periods (GH-30347) 03 January 2022, 20:10:07 UTC
back to top