summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-99509: Add `__class_getitem__` to `multiprocessing.queues.Queue` (#99511)Nikita Sobolev2022-12-273-1/+9
|
* gh-100520: Fix `rst` markup in `configparser` docstrings (#100524)Nikita Sobolev2022-12-261-36/+37
|
* Fix name of removed `inspect.Signature.from_builtin` method in 3.11.0a2 ↵Jakub Kuczys2022-12-261-1/+1
| | | | changelog (#100525)
* gh-92446: Improve argparse choices docs; revert bad change to lzma docs (#94627)Guy Yagev2022-12-262-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 Kulakov2022-12-251-7/+9
|
* gh-100519: simplification to `eff_request_host` in cookiejar.py (#99588)Glyph2022-12-252-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)Shantanu2022-12-242-2/+3
|
* [Minor PR] Quotes in documentation changed into code blocks (#99536)Bart Broere2022-12-241-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)Shantanu2022-12-241-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 ↵MonadChains2022-12-243-0/+32
| | | | (#99990)
* gh-100287: Fix unittest.mock.seal with AsyncMock (#100496)Shantanu2022-12-243-5/+18
|
* gh-100474: Fix handling of dirs named index.html in http.server (GH-100475)James Frost2022-12-243-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)JosephSBoyle2022-12-241-9/+15
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Remove wrong comment about `repr` in `test_unicode` (#100495)Nikita Sobolev2022-12-241-1/+0
|
* gh-100357: Convert several functions in `bltinsmodule` to AC (#100358)Nikita Sobolev2022-12-243-99/+305
|
* Misc Itertools recipe tweaks (GH-100493)Raymond Hettinger2022-12-241-5/+49
|
* GH-91166: Implement zero copy writes for `SelectorSocketTransport` in ↵Kumar Aditya2022-12-240-0/+0
| | | | | asyncio (#31871) Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
* GH-91166: Implement zero copy writes for `SelectorSocketTransport` in ↵Kumar Aditya2022-12-243-29/+175
| | | | | asyncio (#31871) Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
* gh-77771: Add enterabs example in sched (#92716)Stanley2022-12-241-5/+11
| | | Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* gh-100268: Add is_integer method to int (#100439)Shantanu2022-12-245-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 Volochii2022-12-243-5/+6
|
* gh-94808: improve test coverage of number formatting (#99472)Nikita Sobolev2022-12-241-5/+39
|
* Add "strict" to dotproduct(). Add docstring. Factor-out common code. (GH-100480)Raymond Hettinger2022-12-231-2/+3
|
* gh-99947: Ensure unreported errors are chained for SystemError during import ↵Sebastian Berg2022-12-234-7/+13
| | | | (GH-99946)
* gh-68320, gh-88302 - Allow for private `pathlib.Path` subclassing (GH-31691)Barney Gale2022-12-233-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 Hettinger2022-12-236-8/+45
|
* bpo-40447: accept all path-like objects in compileall.compile_file (#19883)Filipe Laíns2022-12-233-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 Sobolev2022-12-2320-234/+136
|
* gh-83076: 3.8x speed improvement in (Async)Mock instantiation (#100252)Carl Meyer2022-12-233-16/+36
|
* gh-94155: Reduce hash collisions for code objects (#100183)Dennis Sweeney2022-12-233-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 Jin2022-12-238-101/+43
| | | | | (GH-100289)" (#100468) This reverts commit c3c7848a48b74a321632202e4bdcf2f465fb1cc6.
* gh-100288: Specialise LOAD_ATTR_METHOD for managed dictionaries (GH-100289)Ken Jin2022-12-238-43/+101
|
* gh-92216: improve performance of `hasattr` for type objects (GH-99979)Pieter Eendebak2022-12-234-8/+44
|
* gh-98712: Clarify "readonly bytes-like object" semantics in C arg-parsing ↵Petr Viktorin2022-12-231-19/+35
| | | | docs (#98710)
* gh-99110: Initialize `frame->previous` in init_frame to fix segmentation ↵Bill Fisher2022-12-235-1/+34
| | | | fault when accessing `frame.f_back` (#100182)
* GH-100459: fix copy-paste errors in specialization stats (GH-100460)Irit Katriel2022-12-231-5/+5
|
* gh-76963: PEP3118 itemsize of an empty ctypes array should not be 0 (GH-5576)Eric Wieser2022-12-233-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)Shantanu2022-12-231-1/+1
|
* gh-48496: Added example and link to faq for UnboundLocalError in reference ↵Stanley2022-12-222-0/+4
| | | | (#93068)
* gh-57762: fix misleading tkinter.Tk docstring (#98837)Shantanu2022-12-221-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 Waygood2022-12-223-5/+18
| | | | implementations of `datetime.time.strftime`, `datetime.datetime.fromtimestamp` (#99993)
* GH-99554: Trim trailing whitespace (GH-100435)Brandt Bucher2022-12-221-1/+1
| | | Automerge-Triggered-By: GH:brandtbucher
* gh-100344: Add C implementation for `asyncio.current_task` (#100345)Itamar Ostricher2022-12-226-9/+123
| | | Co-authored-by: pranavtbhat
* gh-78997: fix bad rebase of moved test file (#100424)Eli Schwartz2022-12-222-188/+6
|
* GH-99770: Make the correct call specialization fail kind show up in the ↵penguin_wwy2022-12-222-64/+85
| | | | stats (GH-99771)
* gh-99761: Add `_PyLong_IsPositiveSingleDigit` function to check for single ↵Pieter Eendebak2022-12-223-10/+25
| | | | digit integers (#100064)
* Correct typo in typing.py (#100423)david-why2022-12-221-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 Bucher2022-12-223-34/+53
|
* GH-69564: Clarify use of octal format of mode argument in help(os.chmod) ↵amaajemyfren2022-12-213-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 Shi2022-12-214-10/+10
|