summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-44246: Entry points performance improvements. (GH-26467)Miss Islington (bot)2021-05-313-1/+30
| | | | | | From importlib_metadata 4.3.1. (cherry picked from commit 410b70d39d9d77384f8b8597560f6731530149ca) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* Post 3.10.0b2Pablo Galindo2021-05-311-1/+1
|
* Python 3.10.0b2v3.10.0b2Pablo Galindo2021-05-3156-138/+673
|
* bpo-44263: Fix _decimal and _testcapi GC protocol (GH-26464) (GH-26465)Miss Islington (bot)2021-05-312-2/+9
| | | | | | | | | | | * _testcapi.heapgctype: implement a traverse function since the type is defined with Py_TPFLAGS_HAVE_GC. * _decimal: PyDecSignalDictMixin_Type is no longer defined with Py_TPFLAGS_HAVE_GC since it has no traverse function. (cherry picked from commit 142e5c5445c019542246d93fe2f9e195d3131686) Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-42972: Fully implement GC protocol for xxlimited (GH-26451) (GH-26460)Miss Islington (bot)2021-05-312-0/+16
| | | | | | | (cherry picked from commit 4b20f2574d412f4c4a5b1ab799d8e71a5dd3b766) Co-authored-by: Hai Shi <shihai1992@gmail.com> Co-authored-by: Hai Shi <shihai1992@gmail.com>
* bpo-42972: Fix sqlite3 traverse/clear functions (GH-26452) (GH-26461)Miss Islington (bot)2021-05-316-41/+44
| | | | | (cherry picked from commit d1124b09e8251061dc040cbd396f35ae57783f4a) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-42085: [docs] Add versionadded for am_send in type object documentation ↵Miss Islington (bot)2021-05-291-0/+2
| | | | | | | (GH-25465) (GH-26453) (cherry picked from commit 0b11c429c7f1721d9ffb9ae19e3e8e2e7bd6444d) Co-authored-by: Martmists <mail@martmists.com>
* bpo-44263: Mention PyType_Ready in the gc protocol warning (GH-26445) (#26446)Miss Islington (bot)2021-05-292-9/+12
| | | | | | | (cherry picked from commit 43cf7c864a2941b3f8f823e5928721dd286b7778) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-44254: On Mac, remove disfunctional colors from turtledemo buttons ↵Miss Islington (bot)2021-05-292-16/+30
| | | | | | | | | | (GH-26448) On macOS, tk defers to system setting for button background when in normal state. Give turtledemo button text a color that works on either light or dark background. (cherry picked from commit af5a324843de395cecc562cb0c757b3768f2077f) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-44263: Better explain the GC contract for PyType_FromSpecWithBases ↵Miss Islington (bot)2021-05-292-0/+18
| | | | | | | | | (GH-26442) (GH-26443) (cherry picked from commit 8b55bc3f93a655bc803bff79725d5fe3f124e2f0) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* 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>