https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
f9774e5 Python 3.12.0a6 07 March 2023, 21:48:18 UTC
a33ca2a gh-102493: fix normalization in PyErr_SetObject (#102502) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> 07 March 2023, 21:27:46 UTC
54060ae gh-87092: compiler's CFG construction moved to after codegen stage (#102320) 07 March 2023, 18:16:32 UTC
4a3ea1f gh-95913: Consolidate build requirements changes in 3.11 WhatsNew (GH-98781) Apply suggestion to combine build requirements changes in 3.11 WhatsNew Co-authored-by: Petr Viktorin <encukou@gmail.com> 07 March 2023, 14:38:31 UTC
d8485d6 Remove redundant `_ensure_future` in favor of `ensure_future` in `asyncio` (#102398) 07 March 2023, 03:14:55 UTC
80b19a3 gh-95913: Edit Faster CPython section in 3.11 WhatsNew (GH-98429) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> 07 March 2023, 02:45:52 UTC
8606697 gh-90110: Fix the c-analyzer Tool (#102483) Some incompatible changes had gone in, and the "ignore" lists weren't properly undated. This change fixes that. It's necessary prior to enabling test_check_c_globals, which I hope to do soon. Note that this does include moving last_resort_memory_error to PyInterpreterState. https://github.com/python/cpython/issues/90110 07 March 2023, 02:40:09 UTC
f9cdeb7 gh-101759: Update macOS installer SQLite 3.40.1 checksum (gh-102485) 07 March 2023, 01:02:24 UTC
c84e6f3 Remove unused import of `warnings` from `unittest.loader` (#102479) 06 March 2023, 22:02:19 UTC
d959bcd Add gettext support to tools/extensions/c_annotations.py (#101989) 06 March 2023, 21:20:52 UTC
f105fe4 gh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives in sub interpreters module (#102472) 06 March 2023, 17:49:31 UTC
d3ca042 gh-95672: Fix versionadded indentation of get_pagesize in test.rst (gh-102455) 06 March 2023, 13:56:19 UTC
f533f21 gh-102416: Do not memoize incorrectly loop rules in the parser (#102467) 06 March 2023, 13:41:53 UTC
6716254 GH-101362: Optimise PurePath(PurePath(...)) (GH-101667) The previous `_parse_args()` method pulled the `_parts` out of any supplied `PurePath` objects; these were subsequently joined in `_from_parts()` using `os.path.join()`. This is actually a slower form of joining than calling `fspath()` on the path object, because it doesn't take advantage of the fact that the contents of `_parts` is normalized! This reduces the time taken to run `PurePath("foo", "bar")` by ~20%, and the time taken to run `PurePath(p, "cheese")`, where `p = PurePath("/foo", "bar", "baz")`, by ~40%. Automerge-Triggered-By: GH:AlexWaygood 05 March 2023, 23:50:21 UTC
3e60e02 GH-101362: Check pathlib.Path flavour compatibility at import time (GH-101664) This saves a comparison in `pathlib.Path.__new__()` and reduces the time taken to run `Path()` by ~5%. Automerge-Triggered-By: GH:AlexWaygood 05 March 2023, 22:46:45 UTC
3572c86 GH-101362: Call join() only when >1 argument supplied to pathlib.PurePath() (#101665) GH-101362: Call join() only when >1 argument supplied to pathlib.PurePath This reduces the time taken to run `PurePath("foo")` by ~15% 05 March 2023, 22:00:56 UTC
96e1022 gh-102444: Fix minor bugs in `test_typing` highlighted by pyflakes (#102445) 05 March 2023, 21:37:29 UTC
3222054 GH-102341: Improve the test function for pow (#102342) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 05 March 2023, 17:31:26 UTC
7894bbe Fix unused classes in a typing test (GH-102437) As part of investigation issue https://github.com/python/cpython/issues/102433, I discovered what I believe to be an error where two classes `CI` and `DI` are not being used. The assertions beneath them act on `C` and `D`, duplicating existing assertions in this test. Automerge-Triggered-By: GH:AlexWaygood 05 March 2023, 15:07:44 UTC
9a478be gh-101979: argparse: fix a bug where parentheses in metavar argument of add_argument() were dropped (#102318) 05 March 2023, 14:54:33 UTC
66aa78c gh-102356: Add thrashcan macros to filter object dealloc (#102426) Add thrashcan macros to the deallocator of the filter objects to protect against deeply nested destruction of chains of nested filters. 05 March 2023, 11:00:41 UTC
5da379c Move around example in to_bytes() to avoid confusion (#101595) Moves an example to be closer to the sentence that refers to it. 05 March 2023, 09:31:56 UTC
a74cd3b GH-97546: fix flaky asyncio `test_wait_for_race_condition` test (#102421) 05 March 2023, 06:45:22 UTC
eff9f43 gh-96821: Add config option `--with-strict-overflow` (#96823) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Shantanu <hauntsaninja@gmail.com> 04 March 2023, 21:39:52 UTC
e4609cb gh-101992: update pstlib module documentation (#102133) 04 March 2023, 21:35:25 UTC
8176334 gh-63301: Set exit code when tabnanny CLI exits on error (#7699) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> 04 March 2023, 21:32:13 UTC
77a3196 gh-101863: Fix wrong comments in EUC-KR codec (gh-102417) 04 March 2023, 16:01:54 UTC
90801e4 gh-102302 Micro-optimize `inspect.Parameter.__hash__` (#102303) 04 March 2023, 15:08:57 UTC
c2bd55d gh-102179: Fix `os.dup2` error reporting for negative fds (#102180) 04 March 2023, 14:24:08 UTC
705487c gh-101892: Fix `SystemError` when a callable iterator call exhausts the iterator (#101896) Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net> 04 March 2023, 14:21:29 UTC
b022250 Remove unused internal macros (#102415) Since #101826 was merged, the internal macro `_Py_InIntegralTypeRange` is unused, as are its supporting macros `_Py_IntegralTypeMax` and `_Py_IntegralTypeMin`. This PR removes them. Note that `_Py_InIntegralTypeRange` doesn't actually work as advertised - it's not a safe way to avoid undefined behaviour in an integer to double conversion. 04 March 2023, 12:20:14 UTC
8de59c1 gh-102021 : Allow multiple input files for interpreter loop generator (#102022) The input files no longer use `-i`. 04 March 2023, 04:59:21 UTC
cb944d0 Add import of `unittest.mock.Mock` in documentation (#102346) 03 March 2023, 17:25:31 UTC
7b91320 gh-102383: [docs] Arguments of `PyObject_CopyData` are `PyObject *` (#102390) 03 March 2023, 17:16:50 UTC
4e7c0cb gh-101754: Document that Windows converts keys in `os.environ` to uppercase (GH-101840) 03 March 2023, 10:51:32 UTC
12011dd gh-102324: Improve tests of `typing.override` (#102325) Fixes #101564 03 March 2023, 03:59:05 UTC
71db5db gh-102371: move _Py_Mangle from compile.c to symtable.c (#102372) 02 March 2023, 18:38:22 UTC
7325000 Fix typos in documentation and comments (GH-102374) Found some duplicate `to`s in the documentation and some code comments and fixed them. [Misc/NEWS.d/3.12.0a1.rst](https://github.com/python/cpython/blob/ed55c69ebd74178115cd8b080f7f8e7588cd5fda/Misc/NEWS.d/3.12.0a1.rst) also contains two duplicate `to`s, but I wasn't sure if it's ok to touch that file. Looks auto generated. I'm happy to amend the PR if requested. :) Automerge-Triggered-By: GH:AlexWaygood 02 March 2023, 15:26:49 UTC
ed55c69 gh-101101: Fix test_code_extra to reset value for refleak test (gh-102350) 02 March 2023, 11:32:05 UTC
6059743 gh-95672: Update memory_watchdog to use test.support.get_pagesize (gh-102365) 02 March 2023, 11:10:08 UTC
eaae563 gh-102088 Optimize iter_index itertools recipe (GH-102360) 02 March 2023, 03:16:23 UTC
2f62a5d gh-95672 skip fcntl when pipesize is smaller than pagesize (gh-102163) 01 March 2023, 14:56:19 UTC
c1748ed gh-102344: Reimplement winreg QueryValue / SetValue using QueryValueEx / SetValueEx (GH-102345) The newer APIs are more widely available than the old ones, and are called in a way to preserve functionality. 01 March 2023, 14:50:38 UTC
d3d2074 gh-102336: Ensure CancelIoEx result is not ignored (GH-102347) fix ignored return value 01 March 2023, 12:01:39 UTC
f91846b gh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives in tkinter module (#102319) 01 March 2023, 09:49:23 UTC
7d1d663 Doc: Fix minor error in ePub (GH-100614) Fix issue reported https://mail.python.org/archives/list/docs@python.org/message/KE7OIAO53P4XRC4ZOWPDHA63ZQJCHEC3/ 01 March 2023, 00:48:15 UTC
938e36f gh-102336: Remove code specifically for handling Windows 7 (GH-102337) 01 March 2023, 00:31:21 UTC
360ef84 gh-99108: Add missing md5/sha1 defines to Modules/Setup (#102308) 28 February 2023, 21:34:06 UTC
880437d gh-100227: Move _str_replace_inf to PyInterpreterState (gh-102333) https://github.com/python/cpython/issues/100227 28 February 2023, 21:16:39 UTC
f300a1f gh-100227: Move the dtoa State to PyInterpreterState (gh-102331) https://github.com/python/cpython/issues/100227 28 February 2023, 20:14:40 UTC
b5ff382 GH-102305: Expand some macros in generated_cases.c.h (#102309) * Emit straight stack_pointer[-i] instead of PEEK(i), POKE(i, ...) * Expand JUMPBY() and NEXTOPARG(), and fix a perf bug 28 February 2023, 16:49:35 UTC
e1a90ec Migrate to new PSF mailgun account (#102284) Our legacy mailgun account is associated with a parent rackspace account that I am trying to decomission. The necessary secret has been added to the GitHub Actions Secrets already, so this is ready to go on approval. 28 February 2023, 13:23:39 UTC
4c87537 gh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives (in Python/) (#102193) 28 February 2023, 11:50:52 UTC
85b1fc1 GH-90744: Fix erroneous doc links in the sys module (#101319) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 28 February 2023, 11:43:00 UTC
9f799ab gh-87092: Make jump target label equal to the offset of the target in the instructions sequence (#102093) 28 February 2023, 11:29:32 UTC
6b2d7c0 gh-101101: Unstable C API tier (PEP 689) (GH-101102) 28 February 2023, 08:31:01 UTC
c41af81 IDLE: Simplify DynOptionsMenu __init__code (#101371) Refactor DynOptionMenu's initializer to not copy kwargs dict and use subscripting; improve its htest. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 28 February 2023, 06:11:52 UTC
0f89acf gh-101561: Add typing.override decorator (#101564) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 27 February 2023, 21:16:11 UTC
4624987 gh-101825: Clarify that as_integer_ratio() output is always normalized (#101843) Make docstrings for `as_integer_ratio` consistent across types, and document that the returned pair is always normalized (coprime integers, with positive denominator). --------- Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com> Co-authored-by: Mark Dickinson <dickinsm@gmail.com> 27 February 2023, 19:11:28 UTC
4f3786b gh-101773: Optimize creation of Fractions in private methods (#101780) This PR adds a private `Fraction._from_coprime_ints` classmethod for internal creations of `Fraction` objects, replacing the use of `_normalize=False` in the existing constructor. This speeds up creation of `Fraction` objects arising from calculations. The `_normalize` argument to the `Fraction` constructor has been removed. Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com> Co-authored-by: Mark Dickinson <dickinsm@gmail.com> 27 February 2023, 18:53:22 UTC
bb0cf8f gh-102251: Updates to test_imp Toward Fixing Some Refleaks (gh-102254) This is related to fixing the refleaks introduced by commit 096d009. I haven't been able to find the leak yet, but these changes are a consequence of that effort. This includes some cleanup, some tweaks to the existing tests, and a bunch of new test cases. The only change here that might have impact outside the tests in question is in imp.py, where I update imp.load_dynamic() to use spec_from_file_location() instead of creating a ModuleSpec directly. Also note that I've updated the tests to only skip if we're checking for refleaks (regrtest's --huntrleaks), whereas in gh-101969 I had skipped the tests entirely. The tests will be useful for some upcoming work and I'd rather the refleaks not hold that up. (It isn't clear how quickly we'll be able to fix the leaking code, though it will certainly be done in the short term.) https://github.com/python/cpython/issues/102251 27 February 2023, 16:21:18 UTC
0db6f44 gh-102296 Document that inspect.Parameter kinds support ordering (GH-102297) Automerge-Triggered-By: GH:AlexWaygood 27 February 2023, 15:13:18 UTC
e3c3f9f gh-102250: Fix double-decref in COMPARE_AND_BRANCH error case (GH-102287) 27 February 2023, 10:46:40 UTC
101a12c gh-101100: Fix sphinx warnings in `types` module (#102274) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 27 February 2023, 07:26:21 UTC
f3cb15c gh-91038: Change default argument value to `False` instead of `0` (#31621) The argument is used as a switch and corresponds to a boolean logic. Therefore it is more intuitive to use the corresponding constant `False` as default value instead of the integer `0`. Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net> 27 February 2023, 02:10:34 UTC
8d0f09b gh-101765: unicodeobject: use Py_XDECREF correctly (#102283) 26 February 2023, 22:45:37 UTC
6daf42b [doc] Improve grammar/fix missing word (GH-102060) 26 February 2023, 13:15:27 UTC
bcadcde gh-102259: Fix re doc issue regarding right square brackets (#102264) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 26 February 2023, 02:22:16 UTC
d71edbd gh-101765: Fix refcount issues in list and unicode pickling (#102265) Followup from #101769. 26 February 2023, 00:01:58 UTC
a498de4 gh-101100: Fix sphinx warnings in `typing` module docs (#102260) 25 February 2023, 21:48:00 UTC
4197043 gh-102252: Improve coverage of test_bool.py (#102253) Add tests for conversion from bool to complex. 25 February 2023, 20:50:24 UTC
a35fd38 gh-102209: Sync with zipp 3.15 moving complexity tests into dedicated module (#102232) Sync with jaraco/zipp@757a4e1a. 25 February 2023, 16:15:48 UTC
207e1c5 asyncio docs: Fix dangling hyphen (#102227) Currently this gets rendered with a dangling hyphen. 25 February 2023, 13:21:32 UTC
89d9ff0 gh-101997: Update bundled pip version to 23.0.1 (#101998) 25 February 2023, 12:00:12 UTC
b7c1126 gh-101100: Fix Sphinx warnings in `decimal` module (#102125) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> 25 February 2023, 09:42:45 UTC
5f11478 GH-102126: fix deadlock at shutdown when clearing thread states (#102222) 25 February 2023, 06:51:36 UTC
56e93c8 gh-95675: fix uid and gid at test_add_dir_getmember (gh-102207) Co-authored-by: Seonkyo Ok <seonkyo.ok@linecorp.com> 25 February 2023, 02:26:40 UTC
54dfa14 gh-101765: Fix SystemError / segmentation fault in iter `__reduce__` when internal access of `builtins.__dict__` exhausts the iterator (#101769) 24 February 2023, 23:02:04 UTC
89b4c12 gh-102209: Disable the timeout in test_implied_dirs_performance. (#102225) Disable the timeout in test_implied_dirs_performance. Workaround for #102209 until I can work out a more robust test for linearity. 24 February 2023, 22:58:10 UTC
2db23d1 gh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives (in Modules/) (#102196) 24 February 2023, 21:43:03 UTC
568fc0d gh-101476: Use _PyType_GetModuleState where applicable (#102188) 24 February 2023, 20:16:29 UTC
81bf10e gh-102105 Fix wording in filterfalse/quantify/filter (GH-102189) 24 February 2023, 16:13:05 UTC
e5e1c1f Remove references to old Windows source files from internal documentation (GH-102216) 24 February 2023, 14:53:50 UTC
1fa3890 gh-102141: replace use of getpid on Windows with GetCurrentProcessId (GH-102142) 24 February 2023, 12:38:21 UTC
347f740 gh-81652: Add MAP_ALIGNED_SUPER FreeBSD and MAP_CONCEAL OpenBSD constants (gh-102191) 24 February 2023, 10:26:51 UTC
9f3ecd1 gh-102158: Add tests for `softkwlist` (#102159) --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 24 February 2023, 02:28:24 UTC
0c85786 Fix deadlock on shutdown if test_current_{exception,frames} fails (#102019) * Don't deadlock on shutdown if test_current_{exception,frames} fails These tests spawn a thread that waits on a threading.Event. If the test fails any of its assertions, the Event won't be signaled and the thread will wait indefinitely, causing a deadlock when threading._shutdown() tries to join all outstanding threads. Co-authored-by: Brett Simmers <bsimmers@meta.com> * Add a news entry * Fix whitespace --------- Co-authored-by: Brett Simmers <bsimmers@meta.com> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net> 23 February 2023, 22:57:06 UTC
ccd98a3 gh-101476: Add _PyType_GetModuleState (GH-101477) For fast module state access from heap type methods. 23 February 2023, 21:42:15 UTC
d43c265 gh-99108: Followup fix for Modules/Setup (GH-102183) Automerge-Triggered-By: GH:erlend-aasland 23 February 2023, 17:23:57 UTC
efc985a gh-93649: Split exception tests from _testcapimodule.c (GH-102173) Automerge-Triggered-By: GH:erlend-aasland 23 February 2023, 15:03:13 UTC
e07b304 gh-101981: Consolidate macOS configure steps in CI (GH-102131) Automerge-Triggered-By: GH:erlend-aasland 23 February 2023, 15:02:23 UTC
c3a1783 gh-102151: Correctly fetch CONFIG_ARGS in Tools/freeze/test/freeze.py (#102152) 23 February 2023, 14:09:51 UTC
665730d bpo-23224: Fix segfaults and multiple leaks in the lzma and bz2 modules (GH-7822) lzma.LZMADecompressor and bz2.BZ2Decompressor objects caused segfaults when their `__init__()` methods were not called. lzma.LZMADecompressor, lzma.LZMACompressor, bz2.BZ2Compressor, and bz2.BZ2Decompressor objects would leak locks and internal buffers when their `__init__()` methods were called multiple times. https://bugs.python.org/issue23224 23 February 2023, 14:00:58 UTC
9bba803 Fix typo in `Py_GetPythonHome` signature (#102168) 23 February 2023, 13:28:33 UTC
5b9573e gh-101578: Fixup NEWS and add What's New entry for new exception APIs (#102157) 23 February 2023, 12:19:21 UTC
22b8d77 GH-100719: Remove redundant `gi_code` field from generator object. (GH-100749) 23 February 2023, 10:19:01 UTC
572223f Revert "bpo-46978: Correct docstrings for in-place builtin operators #31802) (#102146) Revert "bpo-46978: Correct docstrings for in-place builtin operators (#31802)" This reverts commit 128379b8cdb88a6d3d7fed24df082c9a654b3fb8. 23 February 2023, 10:17:44 UTC
056dfc7 gh-87634: remove locking from functools.cached_property (GH-101890) Remove the undocumented locking capabilities of functools.cached_property. 23 February 2023, 01:49:22 UTC
8f64747 Fix syntax error in struct doc example (#102160) Missing closing ) reported on Discuss by Chukwudi Nwachukwu. 22 February 2023, 23:55:03 UTC
fcadc7e gh-99108: Import MD5 and SHA1 from HACL* (#102089) Replaces our fallback non-OpenSSL MD5 and SHA1 implementations with those from HACL* as we've already done with SHA2. 22 February 2023, 21:18:43 UTC
back to top