Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | gh-99509: Add `__class_getitem__` to `multiprocessing.queues.Queue` (#99511) | Nikita Sobolev | 2022-12-27 | 3 | -1/+9 | |
| | ||||||
* | gh-100520: Fix `rst` markup in `configparser` docstrings (#100524) | Nikita Sobolev | 2022-12-26 | 1 | -36/+37 | |
| | ||||||
* | Fix name of removed `inspect.Signature.from_builtin` method in 3.11.0a2 ↵ | Jakub Kuczys | 2022-12-26 | 1 | -1/+1 | |
| | | | | changelog (#100525) | |||||
* | gh-92446: Improve argparse choices docs; revert bad change to lzma docs (#94627) | Guy Yagev | 2022-12-26 | 2 | -7/+7 | |
| | | | | | | | Based on the definition of the collections.abc classes, it is more accurate to use "sequence" instead of "container" when describing argparse choices. A previous attempt at fixing this in #92450 was mistaken; this PR reverts that change. Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> | |||||
* | gh-99308: Clarify re docs for byte pattern group names (#99311) | Ilya Kulakov | 2022-12-25 | 1 | -7/+9 | |
| | ||||||
* | gh-100519: simplification to `eff_request_host` in cookiejar.py (#99588) | Glyph | 2022-12-25 | 2 | -1/+3 | |
| | | | | | `IPV4_RE` includes a `.`, and the `.find(".") == -1` included here is already testing to make sure there's no dot, so this part of the expression is tautological. Instead use more modern `in` syntax to make it clear what the check is doing here. The simplified implementation more clearly matches the wording in RFC 2965. Co-authored-by: hauntsaninja <hauntsaninja@gmail.com> | |||||
* | gh-100472: Fix docs claim that compileall parameters could be bytes (#100473) | Shantanu | 2022-12-24 | 2 | -2/+3 | |
| | ||||||
* | [Minor PR] Quotes in documentation changed into code blocks (#99536) | Bart Broere | 2022-12-24 | 1 | -0/+4 | |
| | | | | | Minor formatting fix in documentation Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> | |||||
* | gh-100428: Make float documentation more accurate (#100437) | Shantanu | 2022-12-24 | 1 | -9/+12 | |
| | | | | Previously, the grammar did not accept `float("10")`. Also implement mdickinson's suggestion of removing the indirection. | |||||
* | gh-99535: Add test for inheritance of annotations and update documentation ↵ | MonadChains | 2022-12-24 | 3 | -0/+32 | |
| | | | | (#99990) | |||||
* | gh-100287: Fix unittest.mock.seal with AsyncMock (#100496) | Shantanu | 2022-12-24 | 3 | -5/+18 | |
| | ||||||
* | gh-100474: Fix handling of dirs named index.html in http.server (GH-100475) | James Frost | 2022-12-24 | 3 | -1/+6 | |
| | | | | | | | If you had a directory called index.html or index.htm within a directory, it would cause http.server to return a 404 Not Found error instead of the directory listing. This came about due to not checking that the index was a regular file. I have also added a test case for this situation. Automerge-Triggered-By: GH:merwok | |||||
* | gh-99908: Tutorial: Modernize the 'data-record class' example (#100499) | JosephSBoyle | 2022-12-24 | 1 | -9/+15 | |
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | |||||
* | Remove wrong comment about `repr` in `test_unicode` (#100495) | Nikita Sobolev | 2022-12-24 | 1 | -1/+0 | |
| | ||||||
* | gh-100357: Convert several functions in `bltinsmodule` to AC (#100358) | Nikita Sobolev | 2022-12-24 | 3 | -99/+305 | |
| | ||||||
* | Misc Itertools recipe tweaks (GH-100493) | Raymond Hettinger | 2022-12-24 | 1 | -5/+49 | |
| | ||||||
* | GH-91166: Implement zero copy writes for `SelectorSocketTransport` in ↵ | Kumar Aditya | 2022-12-24 | 0 | -0/+0 | |
| | | | | | asyncio (#31871) Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> | |||||
* | GH-91166: Implement zero copy writes for `SelectorSocketTransport` in ↵ | Kumar Aditya | 2022-12-24 | 3 | -29/+175 | |
| | | | | | asyncio (#31871) Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> | |||||
* | gh-77771: Add enterabs example in sched (#92716) | Stanley | 2022-12-24 | 1 | -5/+11 | |
| | | | Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> | |||||
* | gh-100268: Add is_integer method to int (#100439) | Shantanu | 2022-12-24 | 5 | -1/+45 | |
| | | | This improves the lives of type annotation users of `float` - which type checkers implicitly treat as `int|float` because that is what most code actually wants. Before this change a `.is_integer()` method could not be assumed to exist on things annotated as `: float` due to the method not existing on both types. | |||||
* | gh-100454: Start running SSL tests with OpenSSL 3.1.0-beta1 (#100456) | Illia Volochii | 2022-12-24 | 3 | -5/+6 | |
| | ||||||
* | gh-94808: improve test coverage of number formatting (#99472) | Nikita Sobolev | 2022-12-24 | 1 | -5/+39 | |
| | ||||||
* | Add "strict" to dotproduct(). Add docstring. Factor-out common code. (GH-100480) | Raymond Hettinger | 2022-12-23 | 1 | -2/+3 | |
| | ||||||
* | gh-99947: Ensure unreported errors are chained for SystemError during import ↵ | Sebastian Berg | 2022-12-23 | 4 | -7/+13 | |
| | | | | (GH-99946) | |||||
* | gh-68320, gh-88302 - Allow for private `pathlib.Path` subclassing (GH-31691) | Barney Gale | 2022-12-23 | 3 | -232/+179 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Users may wish to define subclasses of `pathlib.Path` to add or modify existing methods. Before this change, attempting to instantiate a subclass raised an exception like: AttributeError: type object 'PPath' has no attribute '_flavour' Previously the `_flavour` attribute was assigned as follows: PurePath._flavour = xxx not set!! xxx PurePosixPath._flavour = _PosixFlavour() PureWindowsPath._flavour = _WindowsFlavour() This change replaces it with a `_pathmod` attribute, set as follows: PurePath._pathmod = os.path PurePosixPath._pathmod = posixpath PureWindowsPath._pathmod = ntpath Functionality from `_PosixFlavour` and `_WindowsFlavour` is moved into `PurePath` as underscored-prefixed classmethods. Flavours are removed. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Brett Cannon <brett@python.org> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Eryk Sun <eryksun@gmail.com> | |||||
* | GH-100425: Improve accuracy of builtin sum() for float inputs (GH-100426) | Raymond Hettinger | 2022-12-23 | 6 | -8/+45 | |
| | ||||||
* | bpo-40447: accept all path-like objects in compileall.compile_file (#19883) | Filipe Laíns | 2022-12-23 | 3 | -2/+32 | |
| | | | | | | Signed-off-by: Filipe Laíns <lains@archlinux.org> Signed-off-by: Filipe Laíns <lains@riseup.net> Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> | |||||
* | gh-99482: remove `jython` compatibility parts from stdlib and tests (#99484) | Nikita Sobolev | 2022-12-23 | 20 | -234/+136 | |
| | ||||||
* | gh-83076: 3.8x speed improvement in (Async)Mock instantiation (#100252) | Carl Meyer | 2022-12-23 | 3 | -16/+36 | |
| | ||||||
* | gh-94155: Reduce hash collisions for code objects (#100183) | Dennis Sweeney | 2022-12-23 | 3 | -20/+60 | |
| | | | | | | | * Uses a better hashing algorithm to get better dispersion and remove commutativity. * Incorporates `co_firstlineno`, `Py_SIZE(co)`, and bytecode instructions. * This is now the entire set of criteria used in `code_richcompare`, except for `_PyCode_ConstantKey` (which would incorporate the types of `co_consts` rather than just their values). | |||||
* | Revert "gh-100288: Specialise LOAD_ATTR_METHOD for managed dictionaries ↵ | Ken Jin | 2022-12-23 | 8 | -101/+43 | |
| | | | | | (GH-100289)" (#100468) This reverts commit c3c7848a48b74a321632202e4bdcf2f465fb1cc6. | |||||
* | gh-100288: Specialise LOAD_ATTR_METHOD for managed dictionaries (GH-100289) | Ken Jin | 2022-12-23 | 8 | -43/+101 | |
| | ||||||
* | gh-92216: improve performance of `hasattr` for type objects (GH-99979) | Pieter Eendebak | 2022-12-23 | 4 | -8/+44 | |
| | ||||||
* | gh-98712: Clarify "readonly bytes-like object" semantics in C arg-parsing ↵ | Petr Viktorin | 2022-12-23 | 1 | -19/+35 | |
| | | | | docs (#98710) | |||||
* | gh-99110: Initialize `frame->previous` in init_frame to fix segmentation ↵ | Bill Fisher | 2022-12-23 | 5 | -1/+34 | |
| | | | | fault when accessing `frame.f_back` (#100182) | |||||
* | GH-100459: fix copy-paste errors in specialization stats (GH-100460) | Irit Katriel | 2022-12-23 | 1 | -5/+5 | |
| | ||||||
* | gh-76963: PEP3118 itemsize of an empty ctypes array should not be 0 (GH-5576) | Eric Wieser | 2022-12-23 | 3 | -8/+30 | |
| | | | | The itemsize returned in a memoryview of a ctypes array is now computed from the item type, instead of dividing the total size by the length and assuming that the length is not zero. | |||||
* | Fix typo in 3.12 What's New (#100449) | Shantanu | 2022-12-23 | 1 | -1/+1 | |
| | ||||||
* | gh-48496: Added example and link to faq for UnboundLocalError in reference ↵ | Stanley | 2022-12-22 | 2 | -0/+4 | |
| | | | | (#93068) | |||||
* | gh-57762: fix misleading tkinter.Tk docstring (#98837) | Shantanu | 2022-12-22 | 1 | -1/+1 | |
| | | | | Mentioned as a desired change by terryjreedy on the corresponding issue, since Tk is not a subclass of Toplevel. | |||||
* | gh-85432: Harmonise parameter names between C and pure-Python ↵ | Alex Waygood | 2022-12-22 | 3 | -5/+18 | |
| | | | | implementations of `datetime.time.strftime`, `datetime.datetime.fromtimestamp` (#99993) | |||||
* | GH-99554: Trim trailing whitespace (GH-100435) | Brandt Bucher | 2022-12-22 | 1 | -1/+1 | |
| | | | Automerge-Triggered-By: GH:brandtbucher | |||||
* | gh-100344: Add C implementation for `asyncio.current_task` (#100345) | Itamar Ostricher | 2022-12-22 | 6 | -9/+123 | |
| | | | Co-authored-by: pranavtbhat | |||||
* | gh-78997: fix bad rebase of moved test file (#100424) | Eli Schwartz | 2022-12-22 | 2 | -188/+6 | |
| | ||||||
* | GH-99770: Make the correct call specialization fail kind show up in the ↵ | penguin_wwy | 2022-12-22 | 2 | -64/+85 | |
| | | | | stats (GH-99771) | |||||
* | gh-99761: Add `_PyLong_IsPositiveSingleDigit` function to check for single ↵ | Pieter Eendebak | 2022-12-22 | 3 | -10/+25 | |
| | | | | digit integers (#100064) | |||||
* | Correct typo in typing.py (#100423) | david-why | 2022-12-22 | 1 | -1/+1 | |
| | | | | In the docstring of `ParamSpec`, the name of `P = ParamSpec('P')` was mistakenly written as `'T'`. | |||||
* | GH-99554: Pack location tables more effectively (GH-99556) | Brandt Bucher | 2022-12-22 | 3 | -34/+53 | |
| | ||||||
* | GH-69564: Clarify use of octal format of mode argument in help(os.chmod) ↵ | amaajemyfren | 2022-12-21 | 3 | -3/+23 | |
| | | | | | (#20621) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | |||||
* | gh-78878: Fix crash when creating an instance of `_ctypes.CField` (#14837) | Hai Shi | 2022-12-21 | 4 | -10/+10 | |
| |