https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
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
96bf243 GH-101777: `queue.rst`: use 2 spaces after a period to be consistent. (#102143) 22 February 2023, 20:21:38 UTC
592f65f Few coverage nitpicks for the cmath module (#102067) - partial tests for cosh/sinh overflows (L535 and L771). I doubt both ||-ed conditions could be tested. - removed inaccessible case in sqrt (L832): ax=ay=0 is handled above (L823) because fabs() is exact. Also added test (checked with mpmath and gmpy2) for second condition on that line. - some trivial tests for isclose (cover all conditions on L1217-1218) - add comment for uncovered L1018 Co-authored-by: Mark Dickinson <dickinsm@gmail.com> 22 February 2023, 19:10:01 UTC
7c106a4 GH-100982: Restrict `FOR_ITER_RANGE` to a single instruction to allow instrumentation. (GH-101985) 22 February 2023, 11:11:57 UTC
8d46c7e gh-102135: Update turtle docs to rename wikipedia demo to rosette (#102137) 22 February 2023, 10:11:30 UTC
3ba7743 gh-99942: python.pc on android/cygwin should link to libpython per configure.ac (GH-100356) In commit 254b309c801f82509597e3d7d4be56885ef94c11 a previous change to avoid linking to libpython was partially reverted for Android (and later Cygwin as well), to add back the link flags. This was applied to distutils and to python-config.sh, but not to python.pc. Add it back to python.pc as well. Automerge-Triggered-By: GH:gpshead 22 February 2023, 01:21:24 UTC
d5c7954 gh-95672 fix typo SkitTest to SkipTest (gh-102119) Co-authored-by: HyunKyun Moon <hyunkyun.moon@linecorp.com> 21 February 2023, 17:39:00 UTC
0d4c7fc gh-101936: Update the default value of fp from io.StringIO to io.BytesIO (gh-102100) Co-authored-by: Long Vo <long.vo@linecorp.com> 21 February 2023, 15:14:41 UTC
c2b85a9 gh-102008: simplify test_except_star by using sys.exception() instead of sys.exc_info() (#102009) 21 February 2023, 15:11:31 UTC
7346a38 gh-101903: Remove obsolete undefs for previously removed macros Py_EnterRecursiveCall and Py_LeaveRecursiveCall (#101923) 21 February 2023, 11:58:47 UTC
b40dd71 gh-100556: Improve clarity of `or` docs (#100589) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 21 February 2023, 10:34:56 UTC
350ba7c gh-101777: Make `PriorityQueue` docs slightly clearer (#102026) Adjust wording slightly, and use min(entries) instead of sorted(list(entries))[0] as an example. 21 February 2023, 10:24:33 UTC
0f7a972 gh-101965: Fix usage of Py_EnterRecursiveCall return value in _bisectmodule.c (GH-101966) Closes #101965 Automerge-Triggered-By: GH:erlend-aasland 21 February 2023, 10:03:50 UTC
02d9f15 gh-101578: Amend exception docs (#102057) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> 21 February 2023, 08:15:49 UTC
6f25657 gh-101961 fileinput.hookcompressed should not set the encoding value for the binary mode (gh-102068) 21 February 2023, 03:10:29 UTC
022b44f gh-102056: Fix a few bugs in error handling of exception printing code (#102078) 20 February 2023, 22:16:09 UTC
4d3bc89 gh-102011: use sys.exception() instead of sys.exc_info() in docs where possible (#102012) 20 February 2023, 21:54:19 UTC
36854bb gh-101566: Sync with zipp 3.14. (GH-102018) 20 February 2023, 21:01:58 UTC
84181c1 GH-99818: improve the documentation for zipfile.Path and Traversable (GH-101589) Automerge-Triggered-By: GH:FFY00 20 February 2023, 19:21:10 UTC
59e86ca gh-88233: zipfile: handle extras after a zip64 extra (GH-96161) Previously, any data _after_ the zip64 extra would be removed. With many new tests. Fixes #88233 Automerge-Triggered-By: GH:jaraco 20 February 2023, 17:07:03 UTC
ed01add gh-101981: Apply HOMEBREW related environment variables (gh-102074) 20 February 2023, 15:20:18 UTC
a99eb5c gh-101907: Stop using `_Py_OPCODE` and `_Py_OPARG` macros (GH-101912) * gh-101907: Removes use of non-standard C++ extension from Include/cpython/code.h * Make cases_generator correct on Windows 20 February 2023, 14:56:48 UTC
c00faf7 gh-101819: Adapt _io types to heap types, batch 1 (GH-101949) Adapt StringIO, TextIOWrapper, FileIO, Buffered*, and BytesIO types. Automerge-Triggered-By: GH:erlend-aasland 20 February 2023, 13:46:20 UTC
2713631 gh-101981: Build macOS as recommended by the devguide (GH-102070) Automerge-Triggered-By: GH:erlend-aasland 20 February 2023, 13:07:25 UTC
b1b375e gh-97786: Fix compiler warnings in pytime.c (#101826) Fixes compiler warnings in pytime.c. 20 February 2023, 01:16:11 UTC
60bbed7 gh-101578: Amend PyErr_{Set,Get}RaisedException docs (#101962) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> 19 February 2023, 20:22:29 UTC
3b264df Misc improvements to the float tutorial (GH-102052) 19 February 2023, 19:21:37 UTC
b513c46 gh-85417: Clarify behaviour on branch cuts in cmath module (#102046) This PR updates the cmath module documentation to reflect the reality that Python is almost always (and as far as I can tell, that "almost" can be omitted) running on a machine whose C double supports signed zeros. * Removes misleading references to functions being continuous from above / below / the left / the right at branch cuts * Expands the note on branch cuts at the top of the module documentation to explain the double-sided sign-of-zero-based behaviour 19 February 2023, 19:15:44 UTC
32df540 gh-100425: Update tutorial docs related to sum() accuracy (FH-101854) 19 February 2023, 16:39:03 UTC
71f614e Add missing 'is' to `cmath.log()` docstring (#102049) Fix missing 'is' in cmath.log() docstring 19 February 2023, 15:00:59 UTC
9a07eff gh-100210: Correct the comment link for unescaping HTML (#100212) gh-100210: correct the comment link for unescaping HTML 19 February 2023, 10:18:12 UTC
0729359 gh-97930: Also include subdirectory in makefile. (#102030) 19 February 2023, 02:32:50 UTC
6aab56f gh-99735: Use required=True in argparse subparsers example (#100927) 19 February 2023, 01:06:03 UTC
36b6709 Fix incorrectly documented attribute in csv docs (#101250) 19 February 2023, 00:55:43 UTC
61f1e67 GH-84783: Make the slice object hashable (GH-101264) 19 February 2023, 00:22:02 UTC
5170caf gh-97930: Apply changes from importlib_resources 5.12. (GH-102010) 18 February 2023, 21:29:22 UTC
128379b bpo-46978: Correct docstrings for in-place builtin operators (#31802) 18 February 2023, 18:44:41 UTC
af446bb gh-101536: [docs] Improve attributes of `urllib.error.HTTPError` (#101612) * gh-101536: [docs] Improve attributes of `urllib.error.HTTPError` * Address review 18 February 2023, 15:46:33 UTC
89413bb gh-101967: add a missing error check (#101968) 18 February 2023, 00:52:23 UTC
7f1c721 gh-101739: [Enum] update docs - default boundary for Flag is CONFORM (GH-101746) 17 February 2023, 21:36:47 UTC
77d95c8 gh-100226: Clarify StreamReader.read behavior (#101807) 17 February 2023, 21:01:26 UTC
a1723ca gh-101992: update plistlib examples to be runnable (#101994) * gh-101992: update plistlib examples to be runnable * Update Doc/library/plistlib.rst --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 17 February 2023, 19:30:29 UTC
f482ade gh-101766: Fix refleak for _BlockingOnManager resources from test suite level (gh-101988) 17 February 2023, 15:18:47 UTC
072011b gh-100809: Fix handling of drive-relative paths in pathlib.Path.absolute() (GH-100812) Resolving the drive independently uses the OS API, which ensures it starts from the current directory on that drive. 17 February 2023, 14:08:14 UTC
d401b20 gh-101360: Fix anchor matching in pathlib.PureWindowsPath.match() (GH-101363) Use `fnmatch` to match path and pattern anchors, just as we do for other path parts. This allows patterns such as `'*:/Users/*'` to be matched. 17 February 2023, 14:05:38 UTC
775f881 gh-101766: Fix refleak for _BlockingOnManager resources (gh-101942) 17 February 2023, 10:14:07 UTC
3c0a31c Docs: fix typos in PyFunction_WatchCallback docs and in 3.12 NEWS (GH-101980) - possitibility => possibility - disaallowed => disallowed 17 February 2023, 08:47:02 UTC
a3bb7fb gh-101973: Fix parameter reference for PyModule_FromDefAndSpec (#101976) 17 February 2023, 08:43:07 UTC
984f8ab gh-101758: Fix Refleak-Related Failures in test_singlephase_variants (gh-101969) gh-101891 is causing failures under `$> ./python -m test test_imp -R 3:3`. Furthermore, with that fixed, "test_singlephase_variants" is leaking references. This change addresses the first part, but skips the leaking tests until we can follow up with a fix. https://github.com/python/cpython/issues/101758 17 February 2023, 00:21:22 UTC
4d8959b gh-101758: Add _PyState_AddModule() Back for the Stable ABI (gh-101956) We're adding the function back, only for the stable ABI symbol and not as any form of API. I had removed it yesterday. This undocumented "private" function was added with the implementation for PEP 3121 (3.0, 2007) for internal use and later moved out of the limited API (3.6, 2016) and then into the internal API (3.9, 2019). I removed it completely yesterday, including from the stable ABI manifest (where it was added because the symbol happened to be exported). It's unlikely that anyone is using _PyState_AddModule(), especially any stable ABI extensions built against 3.2-3.5, but we're playing it safe. https://github.com/python/cpython/issues/101758 16 February 2023, 21:05:31 UTC
a5024a2 GH-96764: rewrite `asyncio.wait_for` to use `asyncio.timeout` (#98518) Changes `asyncio.wait_for` to use `asyncio.timeout` as its underlying implementation. 16 February 2023, 18:48:21 UTC
226484e gh-99942: correct the pkg-config/python-config flags for cygwin/android 16 February 2023, 17:57:59 UTC
back to top