https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
401fff7 gh-121459: Add missing return to _PyDict_LoadGlobalStackRef (#124085) We need to return immediately if there's an error during dictionary lookup. Also avoid the conditional-if operator. MSVC versions through v19.27 miscompile compound literals with side effects within a conditional operator. This caused crashes in the Windows10 buildbot. 14 September 2024, 18:29:55 UTC
9dacf43 Remove unused `_allowed_types` from `typing.py` (#124090) 14 September 2024, 13:14:45 UTC
1de4613 Remove unused variable in `MagicMixin._mock_set_magics` (#124092) 14 September 2024, 10:20:44 UTC
b02301f gh-124068: Fix reference leak with generators in the free-threaded build (#124069) If the generator is already cleared, then most fields in the generator's frame are not valid other than f_executable. The invalid fields may contain dangling pointers and should not be used. 14 September 2024, 02:02:27 UTC
3880917 gh-121607: Edited source file import recipe to make it more clear (#121519) Co-authored-by: Brett Cannon <brett@python.org> Co-authored-by: Peter Bierma <zintensitydev@gmail.com> 13 September 2024, 23:36:40 UTC
cd06f5e Minor edits to the descriptor guide (GH-123928) 13 September 2024, 22:02:37 UTC
b1d6f8a gh-123974: Fix time.get_clock_info() on NetBSD (#123975) Fix OSError for thread_time clock on NetBSD by setting default resolution. 13 September 2024, 20:34:25 UTC
ea77973 Revert "gh-112301: Enable warning emitting options and ignore warnings in CI (#123020)" (#124065) 13 September 2024, 19:47:12 UTC
4f25e28 gh-100554: Fix formatting of type.rst modifications (#124066) 13 September 2024, 18:35:08 UTC
eadb966 gh-122957: Fix test flakiness in asyncio test in free-thread build (#124039) 13 September 2024, 18:13:30 UTC
9f42b62 gh-124030: Skip test_tcsendbreak on NetBSD for ENOTTY error (GH-124031) 13 September 2024, 16:27:54 UTC
8810e28 gh-121459: Deferred LOAD_GLOBAL (GH-123128) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Sam Gross <655866+colesbury@users.noreply.github.com> 13 September 2024, 16:23:51 UTC
74330d9 gh-100554: Add ``Py_tp_vectorcall`` slot to set ``PyTypeObject.tp_vectorcall`` using the ``PyType_FromSpec`` function family. (#123332) 13 September 2024, 15:40:25 UTC
bbb36c0 Normalize cdecl formatting as found elsewhere on ctypes.rst (#121379) 13 September 2024, 15:26:16 UTC
3961210 Update to 3.13 the output of exceptions raised (#123888) 13 September 2024, 15:17:30 UTC
fe49e8f gh-124022: add missing #include (#124052) 13 September 2024, 15:16:54 UTC
e6bb1a2 gh-119802: Update memory management docs for free-threaded build (gh-124006) * gh-119802: Update memory management docs for free-threaded build * nit * nit * Address code review * nit * Update Doc/c-api/memory.rst Co-authored-by: Sam Gross <colesbury@gmail.com> --------- Co-authored-by: Sam Gross <colesbury@gmail.com> 13 September 2024, 15:15:44 UTC
bb904e0 closes gh-124016: update Unicode to 16.0.0 (#124017) 13 September 2024, 14:47:04 UTC
a9594a3 gh-124022: Fix bug where class docstring is removed in interactive mode (#124023) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> 13 September 2024, 14:06:06 UTC
cfe6074 gh-112301: Enable warning emitting options and ignore warnings in CI (#123020) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> 13 September 2024, 13:40:04 UTC
b46c65e gh-123811: Test that round(Decimal) can return signed zero (GH-124007) 13 September 2024, 12:49:13 UTC
acb3f87 gh-123961: Add `curses` prefix to global variables in `_cursesmodule.c` (#124047) Use the `const char*` type instead of a `const *` for the encoding name. 13 September 2024, 12:43:06 UTC
e49d1b4 gh-124044: protect macros expansions in `_cursesmodules.c` using `do { ... } while (0)` (#124045) 13 September 2024, 11:26:19 UTC
432bf31 gh-123909: PyType_From*: Disallow metaclasses with custom tp_new (GH-123947) 13 September 2024, 11:18:49 UTC
d7e8339 gh-108303: Remove the non-test `Lib/test/reperf.py` (GH-114356) 13 September 2024, 11:13:52 UTC
403f3dd gh-123961: Remove global variable `ModDict` in `_cursesmodule.c` (#123962) 13 September 2024, 10:33:13 UTC
e5b0185 GH-101599: Update docs to remove redundant option in argparse tutorial (#124025) 13 September 2024, 06:14:52 UTC
f554883 gh-116622: Mock the passage of time in Android logcat rate limit tests (#124015) Mock the passage of time in Android logcat rate limit tests Co-authored-by: Russell Keith-Magee <russell@keith-magee.com> 13 September 2024, 04:58:11 UTC
584cdf8 gh-123614: Add save function to turtle.py (#123617) 13 September 2024, 04:36:17 UTC
1f9d163 gh-116622: Android test script improvements (#124012) * Set Android test script stdout to line-buffered * Print warning logcat messages on stderr * Add a -vv option to display high-volume messages which are rarely useful * Documentation and comment improvements 13 September 2024, 04:23:54 UTC
a47cd21 gh-123976: Refresh docs around custom providers. (#123977) * gh-123976: Refresh docs around custom providers. * Remove excess whitespace. 13 September 2024, 02:29:08 UTC
f4e5643 gh-124027: Support Del, PgUp, and PgDn on TERM=vt100 (#124028) pyrepl: Support Del, PgUp, and PgDn on TERM=vt100 From Fedora's /etc/inputrc: "\e[5~": history-search-backward "\e[6~": history-search-forward "\e[3~": delete-char Fixes https://github.com/python/cpython/issues/124027 13 September 2024, 01:07:23 UTC
6e06e01 gh-124019: do not call codegen_annotations_in_scope if there are no annotations (#124020) 12 September 2024, 19:24:15 UTC
a53812d gh-123085: Fix issue in inferred caller when resources package has no source (#123102) gh-123085: Fix issue in inferred caller when resources package has no source. From importlib_resources 6.4.3 (python/importlib_resources#314). 12 September 2024, 19:08:06 UTC
8145ebe gh-124013: remove _PyCompile_IsTopLevelAwait (#124014) 12 September 2024, 18:58:32 UTC
b2afe2a gh-123923: Defer refcounting for `f_executable` in `_PyInterpreterFrame` (#123924) Use a `_PyStackRef` and defer the reference to `f_executable` when possible. This avoids some reference count contention in the common case of executing the same code object from multiple threads concurrently in the free-threaded build. 12 September 2024, 16:37:06 UTC
4ed7d1d GH-123996: Explicitly mark 'self_or_null' as an array of size 1 to ensure that it is kept in memory for calls (GH-124003) 12 September 2024, 14:32:45 UTC
3ea51fa gh-123994: Generate utf-16 file using little endian and BOM. (#123995) 12 September 2024, 14:14:46 UTC
a362c41 gh-123968: Fix lower bound for `python -m random --float` (#123971) 12 September 2024, 13:54:18 UTC
8e99495 gh-118577: Clarify that inspect.BoundArguments prefers to put values in args (GH-119936) 12 September 2024, 12:03:32 UTC
f5597db Docs: Drop letter PDF (#123912) 12 September 2024, 10:49:19 UTC
77c68b4 gh-111997: update what's new in 3.13 re C API for monitoring events (#123822) 12 September 2024, 10:32:57 UTC
ac918cc gh-123935: Fix typo in `_get_slots` in `dataclasses.py` (#123941) 12 September 2024, 07:29:06 UTC
43303e3 gh-116622: Switch test_stress_delivery_simultaneous from SIGUSR1 to SIGUSR2 (#123981) Use SIGUSR1 instead of SIGUSR2 to improve reliability of signal stress test on Android. 12 September 2024, 05:52:07 UTC
ba687d9 gh-121735: Fix module-adjacent references in zip files (#123037) * gh-116608: Apply style and compatibility changes from importlib_metadata. * gh-121735: Ensure module-adjacent resources are loadable from a zipfile. * gh-121735: Allow all modules to be processed by the ZipReader. * Add blurb * Remove update-zips script, unneeded. * Remove unnecessary references to removed static fixtures. * Remove zipdata fixtures, unused. 12 September 2024, 02:33:07 UTC
3bd942f Fix "The Matrix" movie release year in `typing.rst` (#123965) 11 September 2024, 18:25:23 UTC
eb169f4 Update Sphinx Lint and fix unnecessary parentheses in `:func:`s (#123960) 11 September 2024, 18:05:15 UTC
e07154f gh-123958: apply docstring removal optimization in ast_opt instead of codegen (#123959) 11 September 2024, 17:02:28 UTC
2938c3d gh-123290: fix reference leaks in the error-branches of `_cursesmodule.c` (#123953) 11 September 2024, 15:49:33 UTC
ef05801 gh-108951: Document how to terminate an asyncio.TaskGroup (#123837) We don't want to add another API, since the recipe is straightforward and rarely needed. The advantage is that we could backport this to the earliest Python version that has taskgroups (3.11, alas in security mode already, so we'll just do 3.12 and 3.13). 11 September 2024, 15:43:24 UTC
5436d8b gh-119180: Documentation for PEP 649 and 749 (#122235) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Carol Willing <carolcode@willingconsulting.com> 11 September 2024, 14:49:59 UTC
6e23c89 gh-123942: add missing test for docstring-handling code in ast_opt.c (#123943) 11 September 2024, 14:39:53 UTC
c8d1dbe gh-123919: Fix null handling in `_freeze_module.c` (#123920) 11 September 2024, 13:37:35 UTC
e9eedf1 Fix invisible character typo (#123933) Remove accidental addition of zero-width character (U+FEFF) reported by @jaraco: - https://github.com/python/cpython/commit/c3f4a6b52418d9b9f091f864cb6340d0d5fc6966#commitcomment-146456562 11 September 2024, 11:44:46 UTC
d2b9b6f gh-123811: test that round() can return signed zero (#123829) 11 September 2024, 09:21:05 UTC
a1dbf2e gh-77894: Fix a crash when the GC breaks a loop containing a memoryview (GH-123898) Now a memoryview object can only be cleared if there are no buffers that refer it. 11 September 2024, 09:05:46 UTC
00ffdf2 gh-123915: Ensure that Windows AMD64 and ARM64 release builds use different directories (GH-123918) 10 September 2024, 19:52:49 UTC
a2d0818 gh-123881: make compiler add the .generic_base base class without constructing AST nodes (#123883) 10 September 2024, 16:16:00 UTC
3597642 gh-122239: Add actual count in unbalanced unpacking error message when possible (#122244) 10 September 2024, 15:07:30 UTC
07f0bf5 gh-123165: update docs signature for `dis.disassemble` (#123808) 10 September 2024, 14:25:27 UTC
1b29f41 gh-123905: Update TOML description to include version number (GH-123906) Update TOML description to include version number There is some movement, currently blocked, that would update the TOML spec to 1.1.0; this would include breaking changes to what characters are allowed. Thus, it is worthwhile for the library page to be clear which version is implemented here. Co-authored-by: Paul Hoffman <phoffman@proper.com> 10 September 2024, 14:16:32 UTC
962304a gh-123609: Clarify usage of standalone `PyBUF_FORMAT` (GH-123778) 10 September 2024, 13:05:28 UTC
fb1b51a gh-123892: Add "_wmi" to sys.stdlib_module_names (#123893) 10 September 2024, 09:54:17 UTC
b52de7e gh-123881: Add additional test coverage for PEP 695 edge cases (#123886) 10 September 2024, 07:26:42 UTC
2afba5c Small improvements to the itertools docs (GH-123885) 10 September 2024, 01:57:49 UTC
d359a76 gh-66449: remove duplicate configparser section in 3.13 whatsnew (#123874) 09 September 2024, 20:40:18 UTC
c0c2aa7 gh-122213: Add notes for pickle serialization errors (GH-122214) This allows to identify the source of the error. 09 September 2024, 18:28:55 UTC
4a6b1f1 gh-123826: Fix unused function warnings in mimalloc on NetBSD (#123827) 09 September 2024, 17:22:28 UTC
1a9d891 gh-121404: split compile.c into compile.c and codegen.c (#123651) 09 September 2024, 17:21:51 UTC
65fcaa3 gh-84808: socket.connect_ex: Handle negative errno (GH-122304) POSIX allows errno to be negative. Even though all currently supported platforms have non-negative errno, relying on a quirk like that would make Python less portable. 09 September 2024, 14:59:13 UTC
d8f3c1e gh-117482: Simplify the Fix For Builtin Types Slot Wrappers (GH-122865) In gh-121602, I applied a fix to a builtin types initialization bug. That fix made sense in the context of some broader future changes, but introduced a little bit of extra complexity. That fix has turned out to be incomplete for some of the builtin types we haven't been testing. I found that out while improving the tests. A while back, @markshannon suggested a simpler fix that doesn't have that problem, which I've already applied to 3.12 and 3.13. I'm switching to that here. Given the potential long-term benefits of the more complex (but still incomplete) approach, I'll circle back to it in the future, particularly after I've improved the tests so no corner cases slip through the cracks. (This is effectively a "forward-port" of 716c677 from 3.13.) 09 September 2024, 14:04:58 UTC
b950831 Mention `curl` in `contextvars` docs (#123838) 09 September 2024, 13:58:49 UTC
9017b95 Fix typos (#123775) 09 September 2024, 12:58:26 UTC
df4f0cb gh-123823: Fix test_posix for unsupported posix_fallocate on NetBSD (#123824) Fix test_posix for unsupported posix_fallocate on NetBSD. 09 September 2024, 12:14:23 UTC
b2a8c38 gh-122311: Improve and unify pickle errors (GH-122771) * Raise PicklingError instead of UnicodeEncodeError, ValueError and AttributeError in both implementations. * Chain the original exception to the pickle-specific one as __context__. * Include the error message of ImportError and some AttributeError in the PicklingError error message. * Unify error messages between Python and C implementations. * Refer to documented __reduce__ and __newobj__ callables instead of internal methods (e.g. save_reduce()) or pickle opcodes (e.g. NEWOBJ). * Include more details in error messages (what expected, what got). * Avoid including a potentially long repr of an arbitrary object in error messages. 09 September 2024, 12:04:51 UTC
32bc2d6 gh-123834: Add `symtable` to the list of modules with a CLI (#123835) 09 September 2024, 11:45:43 UTC
05a401a chore: decimal module macro cleanup (#123791) * protect macros expansion via `do { ... } while (0)` constructions in `_decimal.c` * Use public macro `Py_UNUSED` This replaces the usages of the `UNUSED` macro which was not consistent with the `Py_UNUSED` macro itself. In addition, this amends the parameter names so that they match their semantic meanings. * Remove redundant `PyCFunction` casts 09 September 2024, 09:24:24 UTC
93b61bc gh-123843: Remove broken links to the Zope DateTimeWiki (#123846) Co-authored-by: Conrad Bhuiyan-Volkoff <hi@cbv.im> 09 September 2024, 02:39:23 UTC
aa3f11f gh-108219: Add credits to the free-threading entry in What's New (#123802) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Itamar Oren <itamarost@gmail.com> 08 September 2024, 20:20:15 UTC
8ef8354 gh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase (GH-121071) 08 September 2024, 13:01:54 UTC
beee91c gh-123789: `secrets.randbits` returns only non-negative int (#123801) 08 September 2024, 04:17:59 UTC
11fa119 Add willingc to CODEOWNERS for Lang Reference Doc (#123812) 07 September 2024, 18:46:56 UTC
93050e4 Remove excessive backticks in logging doc (#123813) 07 September 2024, 18:09:02 UTC
76a1c5d gh-122792: Make IPv4-mapped IPv6 address properties consistent with IPv4 (GH-122793) Make IPv4-mapped IPv6 address properties consistent with IPv4. 07 September 2024, 18:05:58 UTC
033510e gh-120221: Support KeyboardInterrupt in asyncio REPL (#123795) This switches the main pyrepl event loop to always be non-blocking so that it can listen to incoming interruptions from other threads. This also resolves invalid display of exceptions from other threads (gh-123178). This also fixes freezes with pasting and an active input hook. 06 September 2024, 19:28:29 UTC
0c080d7 gh-123321: Make Parser/myreadline.c locking safe in free-threaded build (#123690) Use a `PyMutex` to avoid the race in mutex initialization. Use relaxed atomics to avoid the data race on reading `_PyOS_ReadlineTState` when checking for re-entrant calls. 06 September 2024, 19:07:08 UTC
8a46a2e gh-117657: Fix file descriptor race in test_socket.py (#123697) 06 September 2024, 19:00:28 UTC
5a4fb7e gh-109975: Add links to py-free-threading.github.io (#123776) Co-authored-by: Victor Stinner <vstinner@python.org> 06 September 2024, 17:12:12 UTC
56e4a41 gh-123523: Rework typing documentation for generators and coroutines, and link to it from `collections.abc` docs (#123544) 06 September 2024, 16:41:06 UTC
d343f97 gh-121645: Fix typo in PyBytes_Join() doc (#123783) 06 September 2024, 14:08:17 UTC
ef4b69d gh-123747: Avoid static_assert() in internal header files (#123779) 06 September 2024, 13:52:07 UTC
e959848 gh-119310: Fix encoding when reading old history file (#121779) Co-authored-by: Łukasz Langa <lukasz@langa.pl> 06 September 2024, 13:40:29 UTC
eca3fe4 gh-123780: Make test_pkgutil clean up `spam` module (GH-123036) 06 September 2024, 13:23:55 UTC
782a076 Fix typo in error message misspelling __slotnames__ (GH-115772) 06 September 2024, 11:50:55 UTC
853588e gh-123657: Fix crash and refleak in `decimal.getcontext()` (GH-123703) 06 September 2024, 11:15:23 UTC
8311b11 gh-119034, REPL: Change page up/down keys to search in history (#123607) Change <page up> and <page down> keys of the Python REPL to history search forward/backward. Co-authored-by: Łukasz Langa <lukasz@langa.pl> 06 September 2024, 11:15:00 UTC
d683f49 gh-111201: fix auto-indent in pyrepl for muliple pound comments (#123196) 06 September 2024, 07:33:40 UTC
67957ea gh-103066: Add links and `help` in site.py constants (#103777) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 06 September 2024, 07:29:28 UTC
d359c7c Ensure clang++ is autodetected on iOS. (gh-123749) 06 September 2024, 01:36:01 UTC
fe24b71 gh-123275: Add tests for `PYTHON_GIL=1` and `-Xgil=1` (gh-123754) 06 September 2024, 01:15:30 UTC
back to top