summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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()
* gh-111803: Support loading more deeply nested lists in binary plist format ↵Serhiy Storchaka2024-01-132-1/+4
| | | | | | (GH-114024) It no longer uses the C stack. The depth of nesting is only limited by Python recursion limit setting.
* gh-114014: Update `fractions.Fraction()`'s rational parsing regex (#114015)Crowthebird2024-01-133-10/+35
| | | | | | | | 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>
* gh-101225: Increase the socket backlog when creating a ↵Ronald Oussoren2024-01-133-2/+6
| | | | | | | | 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.
* Add module docstring for `pathlib._abc`. (#113691)Barney Gale2024-01-131-0/+13
|
* pathlib ABCs: add `_raw_path` property (#113976)Barney Gale2024-01-132-20/+31
| | | | | | | | | 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.
* GH-44626, GH-105476: Fix `ntpath.isabs()` handling of part-absolute paths ↵Barney Gale2024-01-139-33/+51
| | | | | | | | | | | | | (#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>
* GH-111798: skip `test_super_deep()` from `test_call` under pydebug builds on ↵Brett Cannon2024-01-132-6/+6
| | | | WASI (GH-114010)
* gh-89159: Document missing TarInfo members (#91564)Stanley2024-01-121-0/+30
|
* GH-111801: set a lower recursion limit for `test_infintely_many_bases()` in ↵Brett Cannon2024-01-122-1/+4
| | | | `test_isinstance` (#113997)
* datamodel: Fix a typo in ``object.__init_subclass__`` (#111599)InSync2024-01-121-1/+1
|
* Link to the glossary for "magic methods" in ``MagicMock`` (#111292)Pierre Equoy2024-01-121-4/+4
| | | | | 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.
* Tutorial: Clarify 'nonzero exit status' in the appendix (#112039)Andrew Zipperer2024-01-121-1/+1
|
* Fix a grammatical error in `pycore_pymem.h` (#112993)Joseph Pearson2024-01-121-1/+1
|
* gh-101100: Fix Sphinx Lint warnings in `Misc/` (#113946)Hugo van Kemenade2024-01-1243-332/+332
| | | Fix Sphinx Lint warnings in Misc/
* gh-95649: Document that asyncio contains uvloop code (#107536)Alois Klink2024-01-127-0/+49
| | | | | | | | 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
* GH-111802: set a low recursion limit for `test_bad_getattr()` in ↵Brett Cannon2024-01-122-1/+4
| | | | `test.pickletester` (GH-113996)
* gh-113971: Make `zipfile.ZipInfo._compresslevel` public as `.compress_level` ↵Gregory P. Smith2024-01-124-11/+40
| | | | | | | | | | | (#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.
* gh-113710: Add types to the interpreter DSL (#113711)Ken Jin2024-01-1214-138/+227
| | | | Co-authored-by: Jules <57632293+JuliaPoo@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-113868: Add a number of MAP_* flags from macOS to module mmap (#113869)Ronald Oussoren2024-01-123-6/+63
| | | | | The new flags were extracted from the macOS 14.2 SDK. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-107901: duplicate blocks with no lineno that have an eval break and ↵Irit Katriel2024-01-123-10/+38
| | | | multiple predecessors (#113950)
* gh-113980: Fix resource warnings in test_asyncgen (GH-113984)Serhiy Storchaka2024-01-121-2/+19
|
* gh-111877: Fixes stat() handling for inaccessible files on Windows (GH-113716)Steve Dower2024-01-123-6/+72
|
* Docs: Amend codeobject.co_lines docs; end number is exclusive (#113970)Ned Batchelder2024-01-121-3/+3
| | | The end number should be exclusive, not inclusive.
* GH-113860: Get rid of `_PyUOpExecutorObject` (GH-113954)Brandt Bucher2024-01-1212-67/+35
|
* gh-113027: Fix timezone check in test_variable_tzname in test_email (GH-113835)Pablo Galindo Salgado2024-01-121-1/+1
| | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-108364: In sqlite3, disable foreign keys before dumping SQL schema (#113957)Mariusz Felisiak2024-01-123-3/+18
| | | | | | | 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>
* gh-113858: Cut down ccache size (GH-113945)Petr Viktorin2024-01-122-3/+4
| | | | | | | | | | 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
* gh-113937 Fix failures in type cache tests due to re-running (GH-113953)Peter Lazorchak2024-01-121-14/+14
|
* gh-113903: Fix an IDLE configdialog test (#113973)Terry Jan Reedy2024-01-123-16/+16
| | | | | | | | | | | 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.
* gh-111968: Explicit handling for finalized freelist (gh-113929)Donghee Na2024-01-122-19/+7
|
* Improve kde graph with better caption and number formatting (gh-113967)Raymond Hettinger2024-01-121-0/+0
|
* GH-107678: Improve Unicode handling clarity in ``library/re.rst`` (#107679)Adam Turner2024-01-111-92/+145
|
* gh-81489: Use Unicode APIs for mmap tagname on Windows (GH-14133)Zackery Spytz2024-01-115-25/+23
| | | Co-authored-by: Erlend E. Aasland <erlend@python.org>
* Update KDE recipe to match the standard use of the h parameter (gh-#113958)Raymond Hettinger2024-01-111-7/+5
|
* gh-111968: Use per-thread freelists for tuple in free-threading (gh-113921)Donghee Na2024-01-118-70/+45
|
* gh-113845: Fix a compiler warning in Python/suggestions.c (GH-113949)Serhiy Storchaka2024-01-111-2/+0
|