summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-86179: Skip test case that fails on POSIX with unversioned binary (GH-114136)Steve Dower2024-01-171-1/+2
|
* gh-72284: Revise lists in IDLE doc (#114174)Terry Jan Reedy2024-01-174-79/+60
| | | | | | | | | 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.
* gh-81479: For Help => IDLE Doc, stop double-spacing some lists. (#114168)Terry Jan Reedy2024-01-171-1/+1
| | | | | This matches Firefox format. Edge double-spaces non-simple list but I think it looks worse.
* gh-112043: Align concurrent.futures.Executor.map docs with implementation ↵Erlend E. Aasland2024-01-171-5/+5
| | | | | (#114153) The first parameter is named 'fn', not 'func'.
* gh-88531 Fix dataclass __post_init__/__init__ interplay documentation ↵Steffen Zeile2024-01-171-3/+3
| | | | | (gh-107404) * Simplify __post_init__ example usage. It applies to all base classes, not just dataclasses.
* gh-106293: Fix typos in Objects/object_layout.md (#106294)Mano Sriram2024-01-161-3/+3
| | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* GH-110109: pathlib docs: bring `from_uri()` and `as_uri()` together. (#110312)Barney Gale2024-01-161-49/+61
| | | | | | | 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>
* Fix typo in c_annotations.py comment (#108773)Kuan-Wei Chiu2024-01-161-1/+1
| | | "compatability" => "compatibility"
* gh-94220: Align fnmatch docs with the implementation and amend markup (#114152)Erlend E. Aasland2024-01-161-12/+14
| | | | | | | | - 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>
* GH-78988: Document `pathlib.Path.glob()` exception propagation. (#114036)Barney Gale2024-01-161-0/+4
| | | | We propagate the `OSError` from the `is_dir()` call on the top-level directory, and suppress all others.
* gh-113655: Increase default stack size for PGO builds to avoid C stack ↵Steve Dower2024-01-162-3/+9
| | | | exhaustion (GH-114148)
* gh-112529: Track if debug allocator is used as underlying allocator (#113747)Sam Gross2024-01-164-6/+21
| | | | | | | | | | | | | | | * 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
* Update copyright years to 2024. (GH-113608)solya0x2024-01-1610-18/+16
| | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* GH-114013: fix setting `HOSTRUNNER` for `Tools/wasm/wasi.py` (GH-114097)Brett Cannon2024-01-168-12/+15
| | | Also fix tests found failing under a pydebug build of WASI thanks to `make test` working due to this change.
* Clean up backslash avoiding code in ast, fix typo (#113605)Shantanu2024-01-161-8/+5
| | | | | | 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
* gh-113659: Skip hidden .pth files (GH-113660)Serhiy Storchaka2024-01-163-1/+52
| | | | Skip .pth files with names starting with a dot or hidden file attribute.
* Fix 'expresion' typo in IDLE doc (#114130)Terry Jan Reedy2024-01-161-48/+71
| | | The substantive change is on line 577/593. Rest is header/footer stuff ignored when displaying.
* Docs: Improve multiprocessing.SharedMemory reference (#114093)Erlend E. Aasland2024-01-161-38/+46
| | | | | | | | | 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
* gh-114096: Restore privileges in _winapi.CreateJunction after creating the ↵Steve Dower2024-01-162-7/+24
| | | | | junction (GH-114089) This avoids impact on later parts of the application which may be able to do things they otherwise shouldn't.
* gh-114069: Revise Tutorial Methods paragraph (#114127)Terry Jan Reedy2024-01-161-6/+5
| | | Remove excess words in the first and third sentences.
* Fix an incorrect comment in iobase_is_closed (GH-102952)Jonathon Reinhart2024-01-161-10/+9
| | | | | | | | 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>
* gh-114107: test.pythoninfo logs Windows Developer Mode (#114121)Victor Stinner2024-01-161-16/+44
| | | | | Also, don't skip the whole collect_windows() if ctypes is missing. Log also ctypes.windll.shell32.IsUserAnAdmin().
* gh-111968: Use per-thread freelists for PyContext in free-threading (gh-114122)Donghee Na2024-01-169-48/+32
|
* gh-113626: Add allow_code parameter in marshal functions (GH-113648)Serhiy Storchaka2024-01-1610-53/+356
| | | | | Passing allow_code=False prevents serialization and de-serialization of code objects which is incompatible between Python versions.
* gh-102468: Document `PyCFunction_New*` and `PyCMethod_New` (GH-112557)AN Long2024-01-162-0/+49
| | | Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-114107: Fix importlib.resources symlink test if symlinks aren't supported ↵Petr Viktorin2024-01-161-0/+2
| | | | | (#114108) gh-114107: Fix symlink test if symlinks aren't supported
* gh-113858: GH Actions: Limit max ccache size for the asan build (GH-114113)Petr Viktorin2024-01-161-0/+1
|
* Docs: Align multiprocessing.shared_memory docs with Sphinx recommendations ↵Erlend E. Aasland2024-01-162-47/+54
| | | | | | | | | (#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
* gh-114077: Fix OverflowError in socket.sendfile() when pass count >2GiB ↵Serhiy Storchaka2024-01-162-1/+3
| | | | (GH-114079)
* gh-113238: add Anchor to importlib.resources (#113801)Mike Zimin2024-01-162-0/+3
| | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-113358: Fix rendering tracebacks with exceptions with a broken ↵Jérome Perrin2024-01-163-1/+20
| | | | | __getattr__ (GH-113359) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* GH-113655: Lower the C recursion limit on various platforms (GH-113944)Mark Shannon2024-01-1613-39/+41
|
* gh-114101: Correct PyErr_Format arguments in _testcapi module (#114102)AN Long2024-01-162-8/+8
| | | | - use PyErr_SetString() iso. PyErr_Format() in parse_tuple_and_keywords() - fix misspelled format specifier in CHECK_SIGNNESS() macro
* gh-78502: Add a trackfd parameter to mmap.mmap() (GH-25425)Zackery Spytz2024-01-165-11/+101
| | | | | | | | 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>
* gh-112087: Update list impl to be thread-safe with manual CS (gh-113863)Donghee Na2024-01-162-18/+91
|
* gh-91539: Small performance improvement of ↵Raphaël Marinier2024-01-152-1/+2
| | | | | 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.
* gh-114070: correct the specification of ``digit`` in the float() docs (#114080)Sergey B Kirpichev2024-01-151-5/+4
|
* gh-99437: runpy: decode path-like objects before setting globalsKamil Turek2024-01-153-9/+14
|
* gh-111968: Use per-thread slice_cache in free-threading (gh-113972)Donghee Na2024-01-157-18/+28
|
* gh-112532: Fix memory block count for free-threaded build (gh-113995)Sam Gross2024-01-151-18/+27
| | | | | | | | 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.
* gh-109598: make PyComplex_RealAsDouble/ImagAsDouble use __complex__ (GH-109647)Sergey B Kirpichev2024-01-154-10/+73
| | | | | | | | | | `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.
* GH-112354: `_GUARD_IS_TRUE_POP` side-exits to target the next instruction, ↵Mark Shannon2024-01-158-26/+40
| | | | not themselves. (GH-114078)
* gh-113666: Adding missing UF_ and SF_ flags to module 'stat' (#113667)Ronald Oussoren2024-01-155-8/+217
| | | | | Add some constants to module 'stat' that are used on macOS. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-114075: Capture `test_compileall` stdout output (#114076)Kirill Podoprigora2024-01-151-1/+3
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-109862: Fix test_create_subprocess_with_pidfd when it was run separately ↵Serhiy Storchaka2024-01-151-2/+7
| | | | (GH-113991)
* gh-113317: Move FormatCounterFormatter into libclinic (#114066)Erlend E. Aasland2024-01-143-25/+31
|
* Replace `pathlib._abc.PathModuleBase.splitroot()` with `splitdrive()` (#114065)Barney Gale2024-01-142-11/+9
| | | | | 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).
* Add `pathlib._abc.PathModuleBase` (#113893)Barney Gale2024-01-144-59/+182
| | | | | | | | | | | | | | | | 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.
* gh-101100: Fix Sphinx warnings in `howto/urllib2.rst` and ↵Hugo van Kemenade2024-01-149-49/+49
| | | | `library/http.client.rst` (#114060)
* gh-113317: Move global utility functions into libclinic (#113986)Erlend E. Aasland2024-01-143-56/+65
| | | | | | | | Establish Tools/clinic/libclinic/utils.py and move the following functions over there: - compute_checksum() - create_regex() - write_file()