summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-44782: Improve OrderedDict recipe for LRU cache variants (GH-27536) ↵Miss Islington (bot)2021-08-021-16/+32
| | | | (GH-27567)
* bpo-35183: Add typical examples to os.path.splitext docs (GH-27286) (GH-27564)Miss Islington (bot)2021-08-022-7/+27
| | | | | (cherry picked from commit aa0894b3792901adb91e5f6d049154b7bcb980ec) Co-authored-by: Jake Stockwin <jake.stockwin@optimorlabs.com>
* Document PyMember_GetOne and PyMember_SetOne (GH-27555) (GH-27561)Miss Islington (bot)2021-08-021-0/+15
| | | | | (cherry picked from commit d382bde220b4c07cce2b924ffeb7525ea1a969f4) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* bpo-44806: Fix __init__ in subclasses of protocols (GH-27545) (GH-27559)Miss Islington (bot)2021-08-023-2/+48
| | | | | | | Non-protocol subclasses of protocol ignore now the __init__ method inherited from protocol base classes. (cherry picked from commit 043cd60abed09edddc7185bcf7d039771acc734d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44785: Silence deprecation warnings in test_pickle (GH-27538) (#27557)Miss Islington (bot)2021-08-021-1/+5
| | | | | (cherry picked from commit 36d952d228582b0ffc7a86c520d4ddbe8943d803) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* doc: "Mac OS " -> "macOS" (GH-27534) (GH-27549)Miss Islington (bot)2021-08-021-1/+1
| | | | | (cherry picked from commit 1342248f3a2b321b7b00867f47c92ba6549f9497) Co-authored-by: partev <petrosyan@gmail.com>
* doc: "Mac OS X" -> "macOS" (GH-27535) (GH-27547)Miss Islington (bot)2021-08-021-3/+3
| | | | | (cherry picked from commit 414dcb13aaa4fd42f264fdee47782dede5c83d6c) Co-authored-by: partev <petrosyan@gmail.com>
* bpo-44667: Treat correctly lines ending with comments and no newlines in the ↵Miss Islington (bot)2021-08-023-1/+15
| | | | | | | Python tokenizer (GH-27499) (GH-27501) (cherry picked from commit b6bde9fc42aecad5be0457198d17cfe7b481ad79) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* Trivial typo in docstring (#27505)Miss Islington (bot)2021-07-311-1/+1
| | | | | | | (cherry picked from commit 4b4227b907a262446b9d276c274feda2590a4e6e) Co-authored-by: Jesús Cea <jcea@jcea.es> Co-authored-by: Jesús Cea <jcea@jcea.es>
* bpo-42892: fix email multipart attribute error (GH-26903) (GH-27493)Miss Islington (bot)2021-07-303-3/+36
| | | | | (cherry picked from commit e3f877c32d7cccb734f45310f26beeec793364ce) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* bpo-41911: Update docs for various expressions (GH-27470) (GH-27491)Miss Islington (bot)2021-07-301-7/+34
| | | | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 4bd9caafb64589288e5171087070bde726178c58) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* bpo-44666: Use default encoding as fallback for compile_file (GH-27236) ↵Miss Islington (bot)2021-07-304-3/+13
| | | | | | | | | | (GH-27489) When sys.stdout.encoding is None compile_file will fall back to sys.getdefaultencoding to encode/decode error messages. Co-authored-by: Stefan Hoelzl <stefan.hoelzl@posteo.de> Co-authored-by: Mickaël Schoentgen <contact@tiger-222.fr> (cherry picked from commit 80f07076294bc09a55ed76d9bbf307404eef25e6)
* bpo-44753: Don't use logfile extension when determining old files to be ↵Miss Islington (bot)2021-07-301-1/+2
| | | | | deleted (GH-27475) (GH-27486) (cherry picked from commit 6ff890380971752299325bd28eab80ec936975cf)
* [3.9] Fail the CI if an optional module fails to compile (GH-27466). (GH-27482)Pablo Galindo Salgado2021-07-303-0/+7
| | | | | (cherry picked from commit 7cad0bee80a536c7e47f54cf43174175834f30a0) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.9] Update URLs in comments and metadata to use HTTPS (GH-27458) (GH-27480)Łukasz Langa2021-07-3039-58/+58
| | | | | (cherry picked from commit be42c06bb01206209430f3ac08b72643dc7cad1c) Co-authored-by: Noah Kantrowitz <noah@coderanger.net>
* Add missing gdbm dependencies to the UNIX CI (GH-27467) (GH-27468)Miss Islington (bot)2021-07-301-0/+1
| | | | | (cherry picked from commit 851cca8c22795a2f143ad5ebc10adab3c7784ad0) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.9] bpo-31746: Prevent segfaults when sqlite3.Connection is uninitialised ↵Erlend Egeberg Aasland2021-07-292-8/+45
| | | | | | | (GH-27431) (GH-27465) (cherry picked from commit 7e311e496b0e26b3d3c62fe9b0ed2a4677c37ee9) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* Fix typo in ast.rst (GH-27449) (GH-27455)Miss Islington (bot)2021-07-291-1/+1
| | | | Co-authored-by: HaeckelK <haeckelk.github@gmail.com> (cherry picked from commit 6b61d74a3bab43a44fa47b1facd1bec3d74e12b1)
* To fix the random failed test cases of test___xxsubinterpreters in ↵Miss Islington (bot)2021-07-291-0/+15
| | | | | | | multiprocess. (GH-27240) (GH-27453) (cherry picked from commit 9101b39e67c2437e88c0ad6b57aafd48ab08d431) Co-authored-by: Hai Shi <shihai1992@gmail.com>
* bpo-44765: [doc] fix typo (GH-27430) (GH-27451)Miss Islington (bot)2021-07-291-1/+1
| | | | | (cherry picked from commit ccefa8a905c797e4a60078d5e1de846f929c6928) Co-authored-by: Pavel <69010336+pavel-lexyr@users.noreply.github.com>
* bpo-44752: refactor part of rlcompleter.Completer.attr_matches (GH-27433) ↵Miss Islington (bot)2021-07-291-6/+3
| | | | | | | (GH-27446) (cherry picked from commit 6741794dd420c6b9775a188690dbf265037cd69f) Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
* bpo-44752: Make rlcompleter not call `@property` methods (GH-27401) (#27445)Miss Islington (bot)2021-07-293-4/+40
| | | | | | | | | | | * rlcompleter was calling these methods to identify whether to add parenthesis to the completion, based on if the attribute is callable. * for property objects, completion with parenthesis are never desirable. * property methods with print statements behaved very strangely, which was especially unfriendly to language newcomers. <tab> could suddenly produce output unexpectedly. (cherry picked from commit 50de8f74f8e92b20e76438c22b6a8f91afd6df75) Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
* bpo-44707: Fix an undefined behavior of the null pointer arithmetic ↵Miss Islington (bot)2021-07-291-2/+9
| | | | | | | (GH-27292) (GH-27443) (cherry picked from commit e5c8ddb1714fb51ab1defa24352c98e0f01205dc) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-43565: Document PyUnicode_KIND's return type as an unsigned int ↵Miss Islington (bot)2021-07-291-1/+1
| | | | | | | (GH-25724) (GH-27440) (cherry picked from commit 47fd4726a2ce8599cc397ddeae40f70eb471e868) Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
* [3.9] bpo-44461: Check early that a pdb target is valid for execution. ↵Jason R. Coombs2021-07-283-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | (GH-27227) (GH-27400) * [3.9] bpo-44461: Check early that a pdb target is valid for execution. (GH-27227) * bpo-44461: Fix bug with pdb's handling of import error due to a package which does not have a __main__ module * 📜🤖 Added by blurb_it. * remove "else" Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> * If running as a module, first check that it can run as a module. Alternate fix for bpo-44461. Co-authored-by: Irit Katriel Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>. (cherry picked from commit ee03bad25e83b00ba5fc2a0265b48c6286e6b3f7) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> * Ensure os_helper is imported. * Actually, os_helper doesn't exist yet. Just reference rmtree from support.
* bpo-40263: Fixes an off-by-one error in _winapi_WaitForMultipleObjects_impl ↵Miss Islington (bot)2021-07-282-1/+4
| | | | | | | (GH-19501) (cherry picked from commit 92b5dc780db968f6277f42cb06926dddb7475dc6) Co-authored-by: Ray Donnelly <mingw.android@gmail.com>
* [doc] Remove reference to obsolute opcode (GH-27402)Dennis Sweeney2021-07-281-1/+1
|
* bpo-44763: [doc] remove repetitive sentence from textwrap.wrap (GH-27423) ↵Miss Islington (bot)2021-07-281-1/+1
| | | | | | | (GH-27427) (cherry picked from commit cb1d76f10ab33dddd0dbd64e6506bf7c065d499b) Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
* bpo-44544: [doc] list all textwrap func kwargs (GH-26999) (GH-27425)Miss Islington (bot)2021-07-282-4/+18
| | | | | (cherry picked from commit c1e39d6b1167376fdaf3f288ba9a689e61c7fdd1) Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
* bpo-27827: identify a greater range of reserved filename on Windows. ↵Miss Islington (bot)2021-07-283-19/+47
| | | | | | | | | | (GH-26698) (#27422) `pathlib.PureWindowsPath.is_reserved()` now identifies as reserved filenames with trailing spaces or colons. Co-authored-by: Barney Gale <barney.gale@foundry.com> Co-authored-by: Eryk Sun <eryksun@gmail.com> (cherry picked from commit 56c1f6d7edad454f382d3ecb8cdcff24ac898a50)
* Add missing end of sentence in docs (GH-27280) (GH-27420)Miss Islington (bot)2021-07-281-1/+1
| | | | | (cherry picked from commit 531e2fbc52ce07a9cf37e0db05a5337e404dfccd) Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
* Fix typo in sqlite3.rst (GH-27415) (GH-27418)Miss Islington (bot)2021-07-281-1/+1
| | | | | | preceeding -> preceding (cherry picked from commit fbe87023bf33e941373a5fca023652a825db7baf) Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
* Spell out 's.pop() or s.pop(i)' (GH-27398) (GH-27413)Miss Islington (bot)2021-07-281-1/+1
| | | | | (cherry picked from commit 2ff5bb4908975976031ba738866de619cafadc4d) Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
* bpo-44756: in ./Doc, `make build` depends on `make html` (GH-27403) (GH-27411)Miss Islington (bot)2021-07-283-20/+29
| | | | | | | - venv rule is now conditional, and only does anything if $VENVDIR does not exist - add rule "clean-venv" (cherry picked from commit d22c876d5ac5fa464337d2e82654b8d87a83cb1b) Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
* bpo-44657: Fix instancemethod_call to use PyInstanceMethod_GET_FUNCTION ↵Miss Islington (bot)2021-07-281-1/+1
| | | | | | | (GH-27202) (cherry picked from commit ddf8ae31a0f371eff2db14c7f7a45976b86d56ea) Co-authored-by: Dong-hee Na <donghee.na@python.org>
* [3.9] bpo-42853: Fix http.client fails to download >2GiB data over TLS ↵Inada Naoki2021-07-282-10/+33
| | | | | | | (GH-27405) Revert "bpo-36050: optimize HTTPResponse.read() (GH-12698)" This reverts commit d6bf6f2d0c83f0c64ce86e7b9340278627798090.
* Add windows build.bat counterpart for 'make regen-all' in error message ↵Miss Islington (bot)2021-07-271-1/+1
| | | | | | | | (GH-26770) (cherry picked from commit d61b69f02d441ae517109a4428f2a18416c9ff0f) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* docs: replace "Mac OS X" -> "macOS" (GH-27364) (GH-27375)Miss Islington (bot)2021-07-261-6/+6
| | | | | | | | | "Mac OS X" has been rebranded as macOS https://www.apple.com/macos (cherry picked from commit 5fdd2a14ce3f81a7db47bb79421c426dec4b25bd) Co-authored-by: partev <petrosyan@gmail.com>
* The current documentation says it returns None if the name is not found, but ↵Miss Islington (bot)2021-07-262-1/+2
| | | | | | | | | | (GH-26785) (GH-27372) the implementation uses [] and will raise KeyError instead. Noticed by @srittau in python/typeshed@5659. (cherry picked from commit f22737abfa07605f4ed1a99cfa97a26520b6c5c2) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-43443: Clarify difference between shelve objects and dicts (GH-27004) ↵Miss Islington (bot)2021-07-261-1/+2
| | | | | | | (GH-27370) (cherry picked from commit c97c2a050cf753003012ae3f08e035326b8f6167) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44698: Fix undefined behaviour in complex exponentiation. (GH-27278) ↵Miss Islington (bot)2021-07-263-8/+37
| | | | | | | (GH-27367) (cherry picked from commit 1d582bbc969e05896addf97844ddf17ce9830e5e) Co-authored-by: T. Wouters <thomas@python.org>
* bpo-44734: Fix precision in turtle tests (GH-27343) (GH-27362)Miss Islington (bot)2021-07-262-11/+4
| | | | | (cherry picked from commit 3f135c073a53793ec68902f6b513934ddff47235) Co-authored-by: Logan Jones <loganasherjones@gmail.com>
* bpo-44693: Update __future__ entry in Doc/glossary.rst (GH-27349) (GH-27358)Miss Islington (bot)2021-07-262-6/+9
| | | | | | | | | | | Replace sentence with confusing "pseudo-module" with two sentences separating future statements and the __future__ module. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 0363a4014d90df17a29042de008ef0b659f92505) Co-authored-by: Steven Hsu <hsuhaochun@gmail.com> Co-authored-by: Steven Hsu <hsuhaochun@gmail.com>
* [3.9] bpo-44399: Update logging cookbook to document patterns to be avoided. ↵Miss Islington (bot)2021-07-251-0/+79
| | | | | (GH-27348) (GH-27350) (cherry picked from commit 9751f85914e0ef3324671a91da34a635d48b17fb)
* [3.9] bpo-43184: Add information about added attribute and method. ↵Miss Islington (bot)2021-07-251-0/+4
| | | | | (GH-27347) (GH-27353) (cherry picked from commit 50b72768ffe6413424dc4eba916dd1ff89a2fe7b)
* bpo-44713: [doc fix]: typo in subprocess.rst (GH-27297) (#27327)Miss Islington (bot)2021-07-241-1/+1
| | | | | | | This fixes a small typo. The code fragment should not be quoted. Thank you @merwok for the feedback. (cherry picked from commit 7d25254cf0763b62f4c4a3019e56385cab597b9f) Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
* bpo-44720: Don't crash when calling weakref.proxy(not_an_iterator).__next__ ↵Miss Islington (bot)2021-07-243-0/+37
| | | | | | | (GH-27316) (#27325) (cherry picked from commit 5370f0a82aaa4ba617070d5c71d2b18236096ac0) Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
* bpo-29298: Fix crash with required subparsers without dest (GH-3680) (GH-27304)Miss Islington (bot)2021-07-233-0/+28
| | | | | (cherry picked from commit 17575f73ce2cb9f3a4eb4cc416c690f9a4e7205c) Co-authored-by: Anthony Sottile <asottile@umich.edu>
* [3.9] bpo-44708: Only re-run test methods that match names of previously ↵Łukasz Langa2021-07-227-174/+346
| | | | | | | | | | | | | | failing test methods (GH-27287) (GH-27293) * Move to a static argparse.Namespace subclass * Roughly annotate runtest.py * Refactor libregrtest to use lossless test result objects * Only re-run test methods that match names of previously failing test methods * Adopt tests to cover test method name matching Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>. (cherry picked from commit f1afef5e0d93d66fbf3c9aaeab8b3b8da9617583) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-14879: [doc] clarify how to check for errors from subprocess.Popen(..., ↵Miss Islington (bot)2021-07-221-1/+4
| | | | | | | | shell=True) (GH-26755) (GH-27289) (cherry picked from commit 50ffbe3dafcae7826d114df61d56c7ac45a6358c) Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>