summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix dataclass comment typo _eq__ -> __eq__ (GH-26433) (GH-26436)Miss Islington (bot)2021-05-291-1/+1
| | | | | | | (cherry picked from commit 7e6f2375698036d62464c238059ef2073755fdaf) Co-authored-by: Sean Grady <vedicmonk@gmail.com> Co-authored-by: Sean Grady <vedicmonk@gmail.com>
* bpo-44252: Correctly implement gc support for SSLError objects (GH-26439) ↵Miss Islington (bot)2021-05-281-2/+1
| | | | | | | (GH-26441) (cherry picked from commit 8b4312b909abff3100c1f18fb3efa5c25617fee3) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-44249: Fix 3 README.rst typos (GH-26385)Miss Islington (bot)2021-05-281-3/+3
| | | | | (cherry picked from commit acac6c71ff370413374c6aca1df808c426e8a30c) Co-authored-by: Ayush Parikh <ayushparikh332@gmail.com>
* [3.10] bpo-42972: Fully support GC for _winapi.Overlapped (GH-26381) (#26430)Ken Jin2021-05-281-2/+46
| | | | | * bpo-42972: Fully support GC for _winapi.Overlapped (GH-26381) * untrack earlier
* bpo-42972: Fully implement GC protocol for functools LRU cache (GH-26423)Miss Islington (bot)2021-05-281-2/+4
| | | | | (cherry picked from commit 3f8d33252722750e6c019d3df7ce0fabf7bdd45e) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-42972: Fully implement GC protocol for functools keywrapper and partial ↵Miss Islington (bot)2021-05-281-22/+37
| | | | | | | types (GH-26363) (GH-26424) (cherry picked from commit 8994e9c2cd775ddf7b0723824da53fe0d7c039ac) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-44256: Do not expose _functools._list_elem_type (GH-26416)Miss Islington (bot)2021-05-281-3/+2
| | | | | | It is internal use only type. (cherry picked from commit 28be3191a9db2769ed05e55c6bcbccdd029656dd) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
* bpo-41611: IDLE: Catch TclError exceptions in ↵Miss Islington (bot)2021-05-282-27/+37
| | | | | | | | | AutoCompleteWindow.winconfig_event() (GH-26404) Since the <Configure> event may occur after the completion window is gone, catch potential TclError exceptions when accessing acw. (cherry picked from commit 4e2e5c1c4f792b4011e4c78d011baea2aee39f1b)
* bpo-42972: Fully implement GC protocol for re types (GH-26368) (GH-26414)Miss Islington (bot)2021-05-281-19/+81
| | | | | (cherry picked from commit fba42d11880f444bb94d9891e3949f082a57b9a9) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* [3.10] bpo-44246: Update What's New for importlib.metadata. (GH-26408) ↵Miss Islington (bot)2021-05-271-3/+9
| | | | | | | | | | | | | | | | | | | | | | | (GH-26415) * [bpo-44246](): Update What's New for importlib.metadata. Bump version of importlib_metadata included. Add note about compatibility notice and fix link to entry_points documentation. Add note about removal of access by index on Distribution.entry_points. * Fix syntax mistake in issue reference. Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> * Fix broken reference in entry-points. Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> (cherry picked from commit 28f12c9f4f39d283d823d81e311d863526dfdb54) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> Automerge-Triggered-By: GH:jaraco
* bpo-42972: Fully support GC protocol for _operator heap types (GH-26371) ↵Miss Islington (bot)2021-05-271-5/+33
| | | | | | | (GH-26413) (cherry picked from commit f4b70c22c8e37dd7a06702e30b121a6651683421) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-43667: Add news fragment for Solaris changes (GH-26405) (GH-26409)Miss Islington (bot)2021-05-271-0/+2
| | | | | (cherry picked from commit 164a4f46d1606e21d82babc010e397a9116e6730) Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
* bpo-42972: Fully support GC for mmap heap types (GH-26373)Miss Islington (bot)2021-05-271-3/+10
| | | | | (cherry picked from commit 318adeba780851c416505e48a3454cacca831419) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-42972: Fully support GC protocol for _queue.SimpleQueue (GH-26372) ↵Miss Islington (bot)2021-05-271-1/+10
| | | | | | | (GH-26406) (cherry picked from commit 4d7f8f9f7fb09ea8eb4e43409a16a91b0bf18571) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-42972: Fully implement GC protocol for ssl heap types (GH-26370) (GH-26399)Miss Islington (bot)2021-05-271-28/+45
| | | | | (cherry picked from commit dcb8786a9848516e823e090bb36079678913d8d3) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-42972: Fully support GC for pyexpat, unicodedata, and dbm/gdbm heap ↵Miss Islington (bot)2021-05-275-35/+69
| | | | | | | | | | types (GH-26376) * bpo-42972: pyexpat * bpo-42972: unicodedata * bpo-42972: dbm/gdbm (cherry picked from commit 59af59c2dfa52dcd5605185263f266a49ced934c) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-41611: IDLE: fix freezing on completion on macOS (GH-26400)Miss Islington (bot)2021-05-272-1/+8
| | | | | (cherry picked from commit abc4bd5db91c86b6b74289241378a13bd3a0a5e2) Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
* [3.10] bpo-38908: [docs] Add changes to 3.10 whatsnew and fix some minor ↵Miss Islington (bot)2021-05-272-4/+12
| | | | | | | | | inaccuracies in news (GH-26096) (GH-26337) The fix only applies to ``isinstance``. ``issubclass`` isn't affected (because it was always working to begin with). So I also fixed the news to reflect that. (cherry picked from commit 8450e8a81f6d54f45e1fc5c13a03878c9978750d) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* [3.10] bpo-42972: Fully support GC for hashlib heap types (GH-26374) (GH-26398)Miss Islington (bot)2021-05-274-16/+69
| | | | | | | | (cherry picked from commit 6ef5ba391d700bde7ec3ffd5fb7132a30dd309c4) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> Automerge-Triggered-By: GH:tiran
* [3.10] bpo-44241: Incorporate changes from importlib_metadata 4.1. ↵Miss Islington (bot)2021-05-274-8/+30
| | | | | | | | | | (GH-26382) (GH-26395) (cherry picked from commit 06ac3a4742228b0230981720060248a7425b2486) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> Automerge-Triggered-By: GH:jaraco
* bpo-42161: mathmodule.c: move _PyLong_GetOne() loop invariant (GH-26391) ↵Miss Islington (bot)2021-05-261-8/+12
| | | | | | | | | | | | | | (GH-26393) Move _PyLong_GetZero() and _PyLong_GetOne() loop invariants outside loops in functions: * math.comb() * math.gcd() * math.lcm() * math.perm() (cherry picked from commit 3e7ee02327db13e4337374597cdc4458ecb9e3ad) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.10] bpo-42392: [docs] Add deprecated-removed loop labels for asyncio ↵Miss Islington (bot)2021-05-267-0/+153
| | | | | | | | | | | (GH-26357) (GH-26390) * Add deprecated-removed loop labels for all reelvant functions/classes in asyncio (cherry picked from commit d8fd8c8568cbc2f53c1abeda3596a89a46f0e3d7) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Automerge-Triggered-By: GH:gpshead
* bpo-38693: Prefer f-strings in importlib.resources (importlib_resources ↵Miss Islington (bot)2021-05-266-12/+10
| | | | | | | | | | 5.0.6). (GH-26387) (#26389) Automerge-Triggered-By: GH:jaraco (cherry picked from commit f6fbdb90ee450ad693f7a7809035d0dc968f98b7) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* bpo-38693: importlib.metadata f-strings (GH-26383)Miss Islington (bot)2021-05-262-5/+5
| | | | | | Automerge-Triggered-By: GH:jaraco (cherry picked from commit e6c815d2e34be5fdf6dbe773f0781691746d2289) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* bpo-41147: [doc] contextlib.redirect_stdout() provides the new stream as ↵Miss Islington (bot)2021-05-261-3/+4
| | | | | | | context var (GH-21199) (GH-26379) (cherry picked from commit 46db39d7bd67fb9fea133cd4f18cdf7eacb0f6d9) Co-authored-by: Peter Law <PeterJCLaw@gmail.com>
* bpo-44232: Fix type_new() error reporting (GH-26359) (GH-26365)Miss Islington (bot)2021-05-263-0/+26
| | | | | | | | | Fix a regression in type() when a metaclass raises an exception. The C function type_new() must properly report the exception when a metaclass constructor raises an exception and the winner class is not the metaclass. (cherry picked from commit bd199e72fb60a8ff001a023f23925092a290be91) Co-authored-by: Victor Stinner <vstinner@python.org>
* Point to recent link to PyFLTK (GH-26315) (GH-26366)Miss Islington (bot)2021-05-251-1/+1
| | | | | | | (cherry picked from commit ee3d78ef730116f2c43afc248d207ca1d47eee08) Co-authored-by: Mark <mark@qtrac.eu> Co-authored-by: Mark <mark@qtrac.eu>
* bpo-42972: Fully implement GC protocol for arraymodule types (GH-26114)Miss Islington (bot)2021-05-251-2/+11
| | | | | (cherry picked from commit bd404ccac0d3e8358995ac0cbeec9373bb6c4d96) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-42972: Fully implement GC protocol for sqlite3 heap types (GH-26104)Miss Islington (bot)2021-05-256-72/+190
| | | | | (cherry picked from commit d3c277a59c3d93fb92f7026f63678083d1d49fc5) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-20408: Fix memoryview() signature in docs (GH-24431)Miss Islington (bot)2021-05-252-9/+8
| | | | | (cherry picked from commit d18e5dae914b1db49b25ed7729c07a535d1f0c52) Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* bpo-43795: Remove Py_FrozenMain from the Limited API & Stable ABI ↵Miss Islington (bot)2021-05-257-7/+9
| | | | | | | | | | | | | | | | | | (GH-26241) (GH-26353) Py_FrozenMain was added to the Limited C API in [bpo-42591]() (3.10.0a4); but to fix that issue it would be enough to add it to the regular C API. The function is undocumented, tests were added very recently ([bpo-44131]()), and most importantly, it is not present in all builds of Python, as the linker sometimes omits it as unused. It should be added back when these issues are fixed. Note that this does not affect Python's regular C API. (cherry picked from commit d16856960e33bc5f64fc5b842f132058becafa37) Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Petr Viktorin <encukou@gmail.com>
* bpo-43109: configure doc: LTO requires "ar" on macOS (GH-26349)Miss Islington (bot)2021-05-251-2/+2
| | | | | (cherry picked from commit 63f17c252ab1b9357c5f022296213c42d9629458) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-44151: Various grammar, word order, and markup fixes (GH-26344) (GH-26345)Miss Islington (bot)2021-05-252-18/+18
|
* bpo-43109: Fix --with-lto configure option on macOS (GH-26341)Miss Islington (bot)2021-05-253-6/+14
| | | | | | | Allow --with-lto configure option to work with Apple-supplied Xcode or Command Line Tools which do not provide llvm-ar. (cherry picked from commit 59acfd4a09df1c141dac7845eed008af8970fce7) Co-authored-by: Ned Deily <nad@python.org>
* bpo-44151: linear_regression() minor API improvements (GH-26199) (GH-26338)Miss Islington (bot)2021-05-253-26/+26
|
* bpo-41282: Fix broken `make install` (GH-26329)Miss Islington (bot)2021-05-243-6/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A previous commit broke a check in sysconfig when building cpython itself. This caused builds of the standard library modules to search a wrong location (the installed location rather than the source directory) for header files with the net effect that a ``make install`` incorrectly caused all extension modules to be rebuilt again and with incorrect include file paths. When building Python, we need two distinct "include" directories: - source .h files - install target for .h files Note that this doesn't matter except when building Python from source. Historically: - source .h files were in the distutils scheme under 'include' - the install directory was in the distutils.command.install scheme under 'headers' GH-24549 merged these; sysconfig is now the single source of truth and distutils is derived from it. This commit introduces a "secret" scheme path, 'headers', which contains the install target. It is only present when building Python. The distutils code uses it if present, and falls back to 'include'. Co-authored-by: Ned Deily <nad@python.org> (cherry picked from commit 563bd5a4dcc6a26e47966cb66db64859902bce76) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* bpo-44195: Use 'TraversableResources' in the docs to match the ↵Miss Islington (bot)2021-05-242-2/+4
| | | | | | | implementation. (GH-26317) (cherry picked from commit 7148293d96843ca868961313b00361504ec0c242) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* Fix typo in whatsnew/3.10.rst (GH-26310) (GH-26323)Miss Islington (bot)2021-05-231-1/+1
| | | | | (cherry picked from commit 3ad101b3175c102e252161a1b8b928e694de8c94) Co-authored-by: Tushar Sadhwani <tushar.sadhwani000@gmail.com>
* bpo-43207: InspectLoader.is_package is not an abstract method (GH-24517)Miss Islington (bot)2021-05-231-1/+1
| | | | | | | | Making the description of `InspectLoader.is_package` aligned with the current implementation. Automerge-Triggered-By: GH:jaraco (cherry picked from commit 8b9310d90281d4bd3643f4e0767b2d0390f0cb05) Co-authored-by: Junnosuke Kuroda <Isa-rentacs@users.noreply.github.com>
* bpo-44210: make importlib.metadata._meta.PackageMetadata public (GH-26299)Miss Islington (bot)2021-05-232-0/+3
| | | | | | | | Signed-off-by: Filipe Laíns <lains@riseup.net> Automerge-Triggered-By: GH:jaraco (cherry picked from commit df7eeacd83f531dd67cec7bc483dec6dce17ddbd) Co-authored-by: Filipe Laíns <lains@riseup.net>
* bpo-44201: Avoid side effects of "invalid_*" rules in the REPL (GH-26298) ↵Miss Islington (bot)2021-05-225-0/+26
| | | | | | | | | | | | | | | | | | (GH-26313) When the parser does a second pass to check for errors, these rules can have some small side-effects as they may advance the parser more than the point reached in the first pass. This can cause the tokenizer to ask for extra tokens in interactive mode causing the tokenizer to show the prompt instead of failing instantly. To avoid this, add a new mode to the tokenizer that is activated in the second pass and deactivates asking for new tokens when the interactive line is finished. As the parsing should have reached the last line in the first pass, the second pass should not need to ask for more tokens. (cherry picked from commit bd7476dae337e905e7b1bbf33ddb96cc270fdc84) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-30757: Improve "How to make stand-alone binaries" FAQ (GH-26309) (GH-26311)Miss Islington (bot)2021-05-222-10/+12
| | | | | | | | | Co-authored-by: denfromufa <denfromufa@users.noreply.github.com> Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> (cherry picked from commit 2a1e6698b10a7b58c6ac66429de0f51cb739da35) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* Remove duplicate words in docs. (GH-26167) (GH-26296)Miss Islington (bot)2021-05-226-9/+9
| | | | | (cherry picked from commit b06ed1d883cd79c920c514d8a1f4643cf93dc5e0) Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* bpo-44184: Fix subtype_dealloc() for freed type (GH-26274) (GH-26290)Miss Islington (bot)2021-05-214-4/+46
| | | | | | | | | | | | | | Fix a crash at Python exit when a deallocator function removes the last strong reference to a heap type. Don't read type memory after calling basedealloc() since basedealloc() can deallocate the type and free its memory. _PyMem_IsPtrFreed() argument is now constant. (cherry picked from commit 615069eb08494d089bf24e43547fbc482ed699b8) Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Victor Stinner <vstinner@python.org>
* Specify Python Cookbook edition for reference (GH-26301) (#26302)Miss Islington (bot)2021-05-211-2/+2
| | | | | (cherry picked from commit 604cd71e501b3bb1ede2b8abc797643fc2e9129c) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-44180: Fix edge cases in invalid assigment rules in the parser (GH-26283)Miss Islington (bot)2021-05-216-1186/+1449
| | | | | | | | | | | | | | | | | | The invalid assignment rules are very delicate since the parser can easily raise an invalid assignment when a keyword argument is provided. As they are very deep into the grammar tree, is very difficult to specify in which contexts these rules can be used and in which don't. For that, we need to use a different version of the rule that doesn't do error checking in those situations where we don't want the rule to raise (keyword arguments and generator expressions). We also need to check if we are in left-recursive rule, as those can try to eagerly advance the parser even if the parse will fail at the end of the expression. Failing to do this allows the parser to start parsing a call as a tuple and incorrectly identify a keyword argument as an invalid assignment, before it realizes that it was not a tuple after all. (cherry picked from commit c878a9796841c1f4726e6dd5ac49a478af4c8504) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-43927: Change 'IOError' to 'OSError' (GH-26289)Miss Islington (bot)2021-05-211-1/+1
| | | | | | This is the last remaining instance, at least for this chapter, in 3.10 & 3.11. (cherry picked from commit 2f47d8dcc735234bf9c7f92fbdacd8c5a6ee7761) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.10] bpo-43643: Sync with python/importlib_resources@c17a610aad. ↵Miss Islington (bot)2021-05-214-1/+10
| | | | | | | | | | | | (GH-26284) (GH-26286) * [bpo-43643](): Sync with python/importlib_resources@c17a610aad. * Sync with python/importlib_resources@89fd5e961a. (cherry picked from commit 875b3d84b3072b2d3c352ad9f0ff52c441fbd12e) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> Automerge-Triggered-By: GH:jaraco
* [doc] Fix indentation in inspect documentation (GH-24846) (GH-26287)Miss Islington (bot)2021-05-211-4/+4
| | | | | (cherry picked from commit 642fdfdc04e8e40c2cd3e65d67b09fac472bb345) Co-authored-by: Numerlor <25886452+Numerlor@users.noreply.github.com>
* bpo-44180: Report generic syntax errors in the furthest position reached in ↵Miss Islington (bot)2021-05-213-1/+10
| | | | | | | the first parser pass (GH-26253) (GH-26281) (cherry picked from commit b51081c1a8cf01b92ba0692173e1b9274a57f455) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>