https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
f009305 Python 3.13.0a3 17 January 2024, 12:14:40 UTC
b204c4b gh-86179: Skip test case that fails on POSIX with unversioned binary (GH-114136) 17 January 2024, 11:33:59 UTC
4a32275 gh-72284: Revise lists in IDLE doc (#114174) Tkinter is a fact, not necessarily a feature. Reorganize editor key bindings in a logical order and remove those that do not work, at least on Windows. Improve shell bindings list. 17 January 2024, 07:52:32 UTC
e07a400 gh-81479: For Help => IDLE Doc, stop double-spacing some lists. (#114168) This matches Firefox format. Edge double-spaces non-simple list but I think it looks worse. 17 January 2024, 05:24:59 UTC
8d26db4 gh-112043: Align concurrent.futures.Executor.map docs with implementation (#114153) The first parameter is named 'fn', not 'func'. 17 January 2024, 01:31:16 UTC
05008c2 gh-88531 Fix dataclass __post_init__/__init__ interplay documentation (gh-107404) * Simplify __post_init__ example usage. It applies to all base classes, not just dataclasses. 17 January 2024, 01:17:34 UTC
60ca37f gh-106293: Fix typos in Objects/object_layout.md (#106294) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 16 January 2024, 23:11:15 UTC
45e527d GH-110109: pathlib docs: bring `from_uri()` and `as_uri()` together. (#110312) This is a very soft deprecation of `PurePath.as_uri()`. We instead document it as a `Path` method, and add a couple of sentences mentioning that it's also available in `PurePath`. Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> 16 January 2024, 22:51:57 UTC
1d6989f Fix typo in c_annotations.py comment (#108773) "compatability" => "compatibility" 16 January 2024, 22:36:01 UTC
6e84f3b gh-94220: Align fnmatch docs with the implementation and amend markup (#114152) - Align the argument spec for fnmatch functions with the actual implementation. - Update Sphinx markup to recent recommandations. - Add link to 'iterable' glossary entry. Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> 16 January 2024, 22:35:09 UTC
7092b3f GH-78988: Document `pathlib.Path.glob()` exception propagation. (#114036) We propagate the `OSError` from the `is_dir()` call on the top-level directory, and suppress all others. 16 January 2024, 22:28:54 UTC
2e672f7 gh-113655: Increase default stack size for PGO builds to avoid C stack exhaustion (GH-114148) 16 January 2024, 22:02:20 UTC
b331381 gh-112529: Track if debug allocator is used as underlying allocator (#113747) * gh-112529: Track if debug allocator is used as underlying allocator The GC implementation for free-threaded builds will need to accurately detect if the debug allocator is used because it affects the offset of the Python object from the beginning of the memory allocation. The current implementation of `_PyMem_DebugEnabled` only considers if the debug allocator is the outer-most allocator; it doesn't handle the case of "hooks" like tracemalloc being used on top of the debug allocator. This change enables more accurate detection of the debug allocator by tracking when debug hooks are enabled. * Simplify _PyMem_DebugEnabled 16 January 2024, 21:42:15 UTC
c86571e Update copyright years to 2024. (GH-113608) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> 16 January 2024, 20:54:05 UTC
03f7839 GH-114013: fix setting `HOSTRUNNER` for `Tools/wasm/wasi.py` (GH-114097) Also fix tests found failing under a pydebug build of WASI thanks to `make test` working due to this change. 16 January 2024, 19:36:41 UTC
3d5df54 Clean up backslash avoiding code in ast, fix typo (#113605) As of #108553, the `_avoid_backslashes` code path is dead `scape_newlines` was introduced in #110271. Happy to drop the typo fix if we don't want it 16 January 2024, 19:24:25 UTC
74208ed gh-113659: Skip hidden .pth files (GH-113660) Skip .pth files with names starting with a dot or hidden file attribute. 16 January 2024, 18:23:05 UTC
7a24ecc Fix 'expresion' typo in IDLE doc (#114130) The substantive change is on line 577/593. Rest is header/footer stuff ignored when displaying. 16 January 2024, 17:12:59 UTC
b1db627 Docs: Improve multiprocessing.SharedMemory reference (#114093) Align the multiprocessing shared memory docs with Diatáxis's recommendations for references. - use a parameter list for the SharedMemory.__init__() argument spec - use the imperative mode - use versionadded, not versionchanged, for added parameters - reflow touched lines according to SemBr 16 January 2024, 16:43:13 UTC
de4ced5 gh-114096: Restore privileges in _winapi.CreateJunction after creating the junction (GH-114089) This avoids impact on later parts of the application which may be able to do things they otherwise shouldn't. 16 January 2024, 16:40:02 UTC
31a2543 gh-114069: Revise Tutorial Methods paragraph (#114127) Remove excess words in the first and third sentences. 16 January 2024, 16:33:05 UTC
e454f93 Fix an incorrect comment in iobase_is_closed (GH-102952) This comment appears to have been mistakenly copied from what is now called iobase_check_closed() in commit 4d9aec022063. Also unite the iobase_check_closed() code with the relevant comment. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 16 January 2024, 16:27:17 UTC
c77f552 gh-114107: test.pythoninfo logs Windows Developer Mode (#114121) Also, don't skip the whole collect_windows() if ctypes is missing. Log also ctypes.windll.shell32.IsUserAnAdmin(). 16 January 2024, 16:23:46 UTC
867f59f gh-111968: Use per-thread freelists for PyContext in free-threading (gh-114122) 16 January 2024, 16:14:56 UTC
d2d8332 gh-113626: Add allow_code parameter in marshal functions (GH-113648) Passing allow_code=False prevents serialization and de-serialization of code objects which is incompatible between Python versions. 16 January 2024, 16:05:15 UTC
a482bc6 gh-102468: Document `PyCFunction_New*` and `PyCMethod_New` (GH-112557) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> 16 January 2024, 15:17:03 UTC
c361a1f gh-114107: Fix importlib.resources symlink test if symlinks aren't supported (#114108) gh-114107: Fix symlink test if symlinks aren't supported 16 January 2024, 15:10:03 UTC
ac44ec6 gh-113858: GH Actions: Limit max ccache size for the asan build (GH-114113) 16 January 2024, 13:21:16 UTC
af85274 Docs: Align multiprocessing.shared_memory docs with Sphinx recommendations (#114103) - add :class: and :mod: markups where needed - fix incorrect escaping of a star in ShareableList arg spec - mark up parameters with stars: *val* - mark up list of built-in types using list markup - remove unneeded parentheses from :meth: markups 16 January 2024, 12:35:35 UTC
d4dfad2 gh-114077: Fix OverflowError in socket.sendfile() when pass count >2GiB (GH-114079) 16 January 2024, 11:31:34 UTC
c85c002 gh-113238: add Anchor to importlib.resources (#113801) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> 16 January 2024, 10:55:59 UTC
04fabe2 gh-113358: Fix rendering tracebacks with exceptions with a broken __getattr__ (GH-113359) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> 16 January 2024, 09:49:24 UTC
17b73ab GH-113655: Lower the C recursion limit on various platforms (GH-113944) 16 January 2024, 09:32:01 UTC
6c502ba gh-114101: Correct PyErr_Format arguments in _testcapi module (#114102) - use PyErr_SetString() iso. PyErr_Format() in parse_tuple_and_keywords() - fix misspelled format specifier in CHECK_SIGNNESS() macro 16 January 2024, 08:32:39 UTC
8fd287b gh-78502: Add a trackfd parameter to mmap.mmap() (GH-25425) If *trackfd* is False, the file descriptor specified by *fileno* will not be duplicated. Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 16 January 2024, 07:51:46 UTC
42b90cf gh-112087: Update list impl to be thread-safe with manual CS (gh-113863) 16 January 2024, 00:11:14 UTC
5094690 gh-91539: Small performance improvement of urrlib.request.getproxies_environment() (#108771) Small performance improvement of getproxies_environment() when there are many environment variables. In a benchmark with 5k environment variables not related to proxies, and 5 specifying proxies, we get a 10% walltime improvement. 15 January 2024, 23:45:01 UTC
4f24b92 gh-114070: correct the specification of ``digit`` in the float() docs (#114080) 15 January 2024, 22:19:59 UTC
d457345 gh-99437: runpy: decode path-like objects before setting globals 15 January 2024, 16:58:50 UTC
3eae765 gh-111968: Use per-thread slice_cache in free-threading (gh-113972) 15 January 2024, 15:38:57 UTC
44e47df gh-112532: Fix memory block count for free-threaded build (gh-113995) This fixes `_PyInterpreterState_GetAllocatedBlocks()` and `_Py_GetGlobalAllocatedBlocks()` in the free-threaded builds. The gh-113263 change that introduced multiple mimalloc heaps per-thread broke the logic for counting the number of allocated blocks. For subtle reasons, this led to reported reference count leaks in the refleaks buildbots. 15 January 2024, 15:37:36 UTC
0f2fa61 gh-109598: make PyComplex_RealAsDouble/ImagAsDouble use __complex__ (GH-109647) `PyComplex_RealAsDouble()`/`PyComplex_ImagAsDouble` now try to convert an object to a `complex` instance using its `__complex__()` method before falling back to the ``__float__()`` method. PyComplex_ImagAsDouble() also will not silently return 0.0 for non-complex types anymore. Instead we try to call PyFloat_AsDouble() and return 0.0 only if this call is successful. 15 January 2024, 15:04:17 UTC
ac10947 GH-112354: `_GUARD_IS_TRUE_POP` side-exits to target the next instruction, not themselves. (GH-114078) 15 January 2024, 11:41:06 UTC
2010d45 gh-113666: Adding missing UF_ and SF_ flags to module 'stat' (#113667) Add some constants to module 'stat' that are used on macOS. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 15 January 2024, 11:22:43 UTC
892155d gh-114075: Capture `test_compileall` stdout output (#114076) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 15 January 2024, 10:21:34 UTC
f8a7910 gh-109862: Fix test_create_subprocess_with_pidfd when it was run separately (GH-113991) 15 January 2024, 07:26:49 UTC
1709020 gh-113317: Move FormatCounterFormatter into libclinic (#114066) 14 January 2024, 23:09:26 UTC
4de4e65 Replace `pathlib._abc.PathModuleBase.splitroot()` with `splitdrive()` (#114065) This allows users of the `pathlib-abc` PyPI package to use `posixpath` or `ntpath` as a path module in versions of Python lacking `os.path.splitroot()` (3.11 and before). 14 January 2024, 23:06:04 UTC
ca6cf56 Add `pathlib._abc.PathModuleBase` (#113893) Path modules provide a subset of the `os.path` API, specifically those functions needed to provide `PurePathBase` functionality. Each `PurePathBase` subclass references its path module via a `pathmod` class attribute. This commit adds a new `PathModuleBase` class, which provides abstract methods that unconditionally raise `UnsupportedOperation`. An instance of this class is assigned to `PurePathBase.pathmod`, replacing `posixpath`. As a result, `PurePathBase` is no longer POSIX-y by default, and all its methods raise `UnsupportedOperation` courtesy of `pathmod`. Users who subclass `PurePathBase` or `PathBase` should choose the path syntax by setting `pathmod` to `posixpath`, `ntpath`, `os.path`, or their own subclass of `PathModuleBase`, as circumstances demand. 14 January 2024, 21:49:53 UTC
c280843 gh-101100: Fix Sphinx warnings in `howto/urllib2.rst` and `library/http.client.rst` (#114060) 14 January 2024, 20:38:53 UTC
5dbcdfd gh-113317: Move global utility functions into libclinic (#113986) Establish Tools/clinic/libclinic/utils.py and move the following functions over there: - compute_checksum() - create_regex() - write_file() 14 January 2024, 18:26:09 UTC
77b45fa gh-111803: Support loading more deeply nested lists in binary plist format (GH-114024) It no longer uses the C stack. The depth of nesting is only limited by Python recursion limit setting. 13 January 2024, 13:26:55 UTC
dd56b57 gh-114014: Update `fractions.Fraction()`'s rational parsing regex (#114015) Fix a bug in the regex used for parsing a string input to the `fractions.Fraction` constructor. That bug led to an inconsistent exception message being given for some inputs. --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Mark Dickinson <dickinsm@gmail.com> 13 January 2024, 12:02:39 UTC
c7d59bd gh-101225: Increase the socket backlog when creating a multiprocessing.connection.Listener (#113567) Increase the backlog for multiprocessing.connection.Listener` objects created by `multiprocessing.manager` and `multiprocessing.resource_sharer` to significantly reduce the risk of getting a connection refused error when creating a `multiprocessing.connection.Connection` to them. 13 January 2024, 09:48:33 UTC
21f83ef Add module docstring for `pathlib._abc`. (#113691) 13 January 2024, 08:47:00 UTC
f20b151 pathlib ABCs: add `_raw_path` property (#113976) It's wrong for the `PurePathBase` methods to rely so much on `__str__()`. Instead, they should treat the raw path(s) as opaque objects and leave the details to `pathmod`. This commit adds a `PurePathBase._raw_path` property and uses it through many of the other ABC methods. These methods are all redefined in `PurePath` and `Path`, so this has no effect on the public classes. 13 January 2024, 08:03:21 UTC
e4ff131 GH-44626, GH-105476: Fix `ntpath.isabs()` handling of part-absolute paths (#113829) On Windows, `os.path.isabs()` now returns `False` when given a path that starts with exactly one (back)slash. This is more compatible with other functions in `os.path`, and with Microsoft's own documentation. Also adjust `pathlib.PureWindowsPath.is_absolute()` to call `ntpath.isabs()`, which corrects its handling of partial UNC/device paths like `//foo`. Co-authored-by: Jon Foster <jon@jon-foster.co.uk> 13 January 2024, 07:36:05 UTC
dac1da2 GH-111798: skip `test_super_deep()` from `test_call` under pydebug builds on WASI (GH-114010) 13 January 2024, 00:29:16 UTC
3aa4b83 gh-89159: Document missing TarInfo members (#91564) 12 January 2024, 23:19:57 UTC
3c19ee0 GH-111801: set a lower recursion limit for `test_infintely_many_bases()` in `test_isinstance` (#113997) 12 January 2024, 23:19:21 UTC
a47353d datamodel: Fix a typo in ``object.__init_subclass__`` (#111599) 12 January 2024, 22:59:24 UTC
e97da86 Link to the glossary for "magic methods" in ``MagicMock`` (#111292) The MagicMock documentation mentions magic methods several times without actually pointing to the term in the glossary. This can be helpful for people to fully understand what those magic methods are. 12 January 2024, 22:54:36 UTC
32f3684 Tutorial: Clarify 'nonzero exit status' in the appendix (#112039) 12 January 2024, 22:42:51 UTC
9a71750 Fix a grammatical error in `pycore_pymem.h` (#112993) 12 January 2024, 22:25:52 UTC
794983c gh-101100: Fix Sphinx Lint warnings in `Misc/` (#113946) Fix Sphinx Lint warnings in Misc/ 12 January 2024, 22:25:04 UTC
dce30c9 gh-95649: Document that asyncio contains uvloop code (#107536) Some of the asyncio SSL changes in GH-31275 [1] were taken from v0.16.0 of the uvloop project [2]. In order to comply with the MIT license, we need to just need to document the copyright information. [1]: https://github.com/python/cpython/pull/31275 [2]: https://github.com/MagicStack/uvloop/tree/v0.16.0 12 January 2024, 22:21:13 UTC
8aa1263 GH-111802: set a low recursion limit for `test_bad_getattr()` in `test.pickletester` (GH-113996) 12 January 2024, 22:14:09 UTC
b44b9d9 gh-113971: Make `zipfile.ZipInfo._compresslevel` public as `.compress_level` (#113969) Make zipfile.ZipInfo.compress_level public. A property is used to retain the behavior of the ._compresslevel. People constructing zipfile.ZipInfo instances to pass into existing APIs to control per-file compression levels already treat this as public, there was never a reason for it not to be. I used the more modern name compress_level instead of compresslevel as the keyword argument on other ZipFile APIs is called to be consistent with compress_type and a general long term preference of not runningwordstogether without a separator in names. 12 January 2024, 20:15:05 UTC
ac92527 gh-113710: Add types to the interpreter DSL (#113711) Co-authored-by: Jules <57632293+JuliaPoo@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> 12 January 2024, 17:30:27 UTC
7997079 gh-113868: Add a number of MAP_* flags from macOS to module mmap (#113869) The new flags were extracted from the macOS 14.2 SDK. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 12 January 2024, 15:56:18 UTC
8aa0088 gh-107901: duplicate blocks with no lineno that have an eval break and multiple predecessors (#113950) 12 January 2024, 15:38:09 UTC
e02c15b gh-113980: Fix resource warnings in test_asyncgen (GH-113984) 12 January 2024, 15:30:26 UTC
ed06648 gh-111877: Fixes stat() handling for inaccessible files on Windows (GH-113716) 12 January 2024, 15:27:56 UTC
e68806c Docs: Amend codeobject.co_lines docs; end number is exclusive (#113970) The end number should be exclusive, not inclusive. 12 January 2024, 15:04:14 UTC
30e6cbd GH-113860: Get rid of `_PyUOpExecutorObject` (GH-113954) 12 January 2024, 11:58:23 UTC
29e2839 gh-113027: Fix timezone check in test_variable_tzname in test_email (GH-113835) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 12 January 2024, 10:46:17 UTC
de777e4 gh-108364: In sqlite3, disable foreign keys before dumping SQL schema (#113957) sqlite3.Connection.iterdump now ensures that foreign key support is disabled before dumping the database schema, if there is any foreign key violation. Co-authored-by: Erlend E. Aasland <erlend@python.org> 12 January 2024, 09:50:37 UTC
fcb4c8d gh-113858: Cut down ccache size (GH-113945) Cut down ccache size - Only save the ccache in the main reusable builds, not on builds that don't use special build options: - Generated files check - OpenSSL tests - Hypothesis tests - Halve the max cache size, to 200M 12 January 2024, 09:48:25 UTC
e58334e gh-113937 Fix failures in type cache tests due to re-running (GH-113953) 12 January 2024, 05:18:19 UTC
c4992f4 gh-113903: Fix an IDLE configdialog test (#113973) test_configdialog.HighPageTest.test_highlight_target_text_mouse fails if a line of the Highlight tab text sample is not visible. If so, bbox() in click_char() returns None and the unpacking iteration fails. This occurred on a Devuan Linux system. Fix by moving the 'see character' call inside click_char, just before the bbox call. Also, reduce the click_char calls to just one per tag name and replace the other nested function with a dict comprehension. 12 January 2024, 03:10:00 UTC
efa738e gh-111968: Explicit handling for finalized freelist (gh-113929) 12 January 2024, 00:31:28 UTC
53d2e1f Improve kde graph with better caption and number formatting (gh-113967) 12 January 2024, 00:25:18 UTC
c9b8a22 GH-107678: Improve Unicode handling clarity in ``library/re.rst`` (#107679) 11 January 2024, 23:56:10 UTC
b4d4aa9 gh-81489: Use Unicode APIs for mmap tagname on Windows (GH-14133) Co-authored-by: Erlend E. Aasland <erlend@python.org> 11 January 2024, 22:39:47 UTC
2f126a7 Update KDE recipe to match the standard use of the h parameter (gh-#113958) 11 January 2024, 22:21:21 UTC
2e7577b gh-111968: Use per-thread freelists for tuple in free-threading (gh-113921) 11 January 2024, 18:46:28 UTC
8717f7b gh-113845: Fix a compiler warning in Python/suggestions.c (GH-113949) 11 January 2024, 18:31:24 UTC
55824d0 GH-113853: Guarantee forward progress in executors (GH-113854) 11 January 2024, 18:20:42 UTC
0d8fec7 gh-107901: jump leaving an exception handler doesn't need an eval break check (#113943) 11 January 2024, 14:27:41 UTC
7ed76fc gh-91960: Remove Cirrus CI configuration (#113938) Remove .cirrus.yml which was already disabled by being renamed to .cirrus-DISABLED.yml. In total, Cirrus CI only run for less than one month. 11 January 2024, 13:33:24 UTC
9f08833 gh-113932: assert ``SyntaxWarning`` in test_compile.TestSpecifics.test_… (#113933) 11 January 2024, 11:25:07 UTC
ec23e90 gh-112419: Document removal of sys.meta_path's 'find_module' fallback (#112421) Co-authored-by: Erlend E. Aasland <erlend@python.org> 11 January 2024, 09:43:35 UTC
2ac4cf4 gh-112640: Add `kwdefaults` parameter to `types.FunctionType.__new__` (#112641) 11 January 2024, 08:42:30 UTC
f653caa gh-89811: Check for valid tp_version_tag in specializer (GH-113558) 11 January 2024, 05:33:05 UTC
c65ae26 gh-111968: Unify naming scheme for freelist (gh-113919) 10 January 2024, 23:51:51 UTC
9d33c23 gh-113896: Fix test_builtin.BuiltinTest.test___ne__() (#113897) Fix DeprecationWarning in test___ne__(). Co-authored-by: Nikita Sobolev <mail@sobolevn.me> 10 January 2024, 23:39:48 UTC
fafb327 gh-87868: Skip `test_one_environment_variable` in `test_subprocess` when the platform or build cannot do that (#113867) * improve the assert for test_one_environment_variable * skip some test in test_subprocess when python is configured with shared * also skip the test if AddressSanitizer is enabled --------- Co-authored-by: Steve Dower <steve.dower@microsoft.com> 10 January 2024, 23:17:05 UTC
1d75fa4 gh-77046: os.pipe() sets _O_NOINHERIT flag on fds (#113817) On Windows, set _O_NOINHERIT flag on file descriptors created by os.pipe() and io.WindowsConsoleIO. Add test_pipe_spawnl() to test_os. Co-authored-by: Zackery Spytz <zspytz@gmail.com> 10 January 2024, 22:02:17 UTC
e82b096 gh-112302: Point core developers to SBOM devguide on errors (#113490) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> 10 January 2024, 19:21:04 UTC
73ae202 gh-113753: Clear finalized bit when putting PyAsyncGenASend back into free list (#113754) 10 January 2024, 18:18:38 UTC
back to top