summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.10] bpo-11105: reduce the recursion limit for tests. (GH-26607)Batuhan Taskaya2021-06-082-2/+14
| | | | | (cherry picked from commit e58d762c1fb4ad5e021d016c80c2bc4513632d2f) Co-authored-by: Batuhan Taskaya <batuhan@python.org>
* bpo-43795: Note Stable ABI PEP in What's New (GH-26479) (GH-26603)Miss Islington (bot)2021-06-081-0/+10
| | | | | | | (cherry picked from commit 257e400a19b34c7da6e2aa500d80b54e4c4dbf6f) Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* bpo-44335: Fix a regression when identifying invalid characters in syntax ↵Miss Islington (bot)2021-06-083-1/+6
| | | | | | | errors (GH-26589) (cherry picked from commit d334c73b56756e90c33ce06e3a6ec23271aa099d) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* fix: use unambiguous punction in 'invalid escape sequence' message (GH-26582)Miss Islington (bot)2021-06-082-3/+3
| | | | | (cherry picked from commit ffd87b7093109c279caf8e3ca060f408a102388a) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* Use absolute imports in IDLE tests (GH-26581)Miss Islington (bot)2021-06-071-1/+1
| | | | | | Relative imports do not work when running test_x as main. (cherry picked from commit e915db3e9e512249a6f494c0b331db2d021e1f56) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-44322: Document more SyntaxError details. (GH-26562)Miss Islington (bot)2021-06-072-2/+11
| | | | | | | | | 1. SyntaxError args have a tuple of other attributes. 2. Attributes are adjusted for errors in f-string field expressions. 3. Compile() can raise SyntaxErrors. (cherry picked from commit 67dfa6f2a508c325715625fe442f2ce20270a8b3) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-44227: Update bisect docstrings (GH-26548) (GH-26563)Miss Islington (bot)2021-06-062-11/+11
|
* bpo-44320: Fix markup for W3C C14N test suite (GH-26556)Miss Islington (bot)2021-06-061-1/+1
| | | | | (cherry picked from commit 71be46170490d08743c714b9fa4484038aa7a23e) Co-authored-by: NAKAMURA Osamu <osamu0329nakamura@users.noreply.github.com>
* bpo-44304: Ensure the sqlite3 destructor callback is always called with the ↵Miss Islington (bot)2021-06-052-0/+7
| | | | | | | GIL held (GH-26551) (GH_26552) (cherry picked from commit 6e3b7cf3af3ed7758b2c2193c1d393feb8ab8f72) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-44304: Fix crash in the sqlite3 module when the GC clears Statement ↵Miss Islington (bot)2021-06-053-7/+23
| | | | | | | objects (GH-26545) (cherry picked from commit fa106a685c1f199aca5be5c2d0277a14cc9057bd) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* Update nonstandard variable names (GH-26540) (GH-26546)Miss Islington (bot)2021-06-051-5/+5
|
* Improve speed and accuracy for correlation() (GH-26135) (GH-26151)Miss Islington (bot)2021-06-051-12/+14
|
* bpo-38323: Skip SubprocessMultiLoopWatcherTest as they can hang the test ↵Miss Islington (bot)2021-06-051-0/+2
| | | | | | | | | suite (GH-26542) (GH-26544) (cherry picked from commit f171877ebe276749f31386baed5841ce37cbee2e) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-44279: revert 'exceptions are raised' back to 'exceptions occur' ↵Miss Islington (bot)2021-06-041-1/+1
| | | | | | | (GH-26492) (GH-26538) (cherry picked from commit dda9ecbfece28aad7b8ba7eaf7951dd9816f78b1) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* bpo-43853: Handle sqlite3_value_text() errors (GH-25422)Miss Islington (bot)2021-06-043-13/+21
| | | | | (cherry picked from commit 006fd869e4798b68e266f5de89c83ddb531a756b) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-44048: Fix two hashlib test cases under FIPS mode (GH-26470) (GH-26531)Miss Islington (bot)2021-06-041-2/+10
| | | | | | | | | | test_disallow_instantiation and test_readonly_types try to test all the available digests, however under FIPS mode, while the algorithms are available, trying to use them will fail with a ValueError. (cherry picked from commit a46c220edc5cf716d0b71eb80ac29ecdb4ebb430) Co-authored-by: stratakis <cstratak@redhat.com> Co-authored-by: stratakis <cstratak@redhat.com>
* [3.10] bpo-44305: Improve syntax error for try blocks without except or ↵Pablo Galindo2021-06-035-269/+383
| | | | | | | finally (GH-26523) (GH-26524) (cherry picked from commit b250f89bb7e05e72a4641d44b988866b919575db) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* [3.10] bpo-44273: Improve syntax error message for assigning to "..." ↵Pablo Galindo2021-06-032-2/+2
| | | | | | | | | | (GH-26477) (GH-26478) Use "ellipsis" instead of "Ellipsis" in syntax error messages to eliminate confusion with built-in variable Ellipsis. (cherry picked from commit 39dd141) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-11105: Do not crash when compiling recursive ASTs (GH-20594)Miss Islington (bot)2021-06-034-4/+840
| | | | | | | | | | When compiling an AST object with a direct / indirect reference cycles, on the conversion phase because of exceeding amount of calls, a segfault was raised. This patch adds recursion guards to places for preventing user inputs to not to crash AST but instead raise a RecursionError. (cherry picked from commit f3491242e41933aa9529add7102edb68b80a25e9) Co-authored-by: Batuhan Taskaya <batuhan@python.org>
* bpo-43921: Fix test_ssl.test_wrong_cert_tls13() on Windows (GH-26502) (GH-26518)Miss Islington (bot)2021-06-032-14/+9
| | | | | | | Fix test_ssl.test_wrong_cert_tls13(): use suppress_ragged_eofs=False, since read() can raise ssl.SSLEOFError on Windows. (cherry picked from commit ea0210fa8ccca769896847f25fc6fadfe9a717bc) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.10] bpo-44298: Backport #26513 to 3.10 (#26516)Mark Shannon2021-06-034-2853/+2908
| | | | | * Backport 937cebc93 to 3.10 * Update importlib
* [3.10] bpo-42972: Track sqlite3 statement objects (GH-26475) (GH-26515)Erlend Egeberg Aasland2021-06-034-48/+40
| | | | | | | | | | | | | | Allocate and track statement objects in pysqlite_statement_create. By allocating and tracking creation of statement object in pysqlite_statement_create(), the caller does not need to worry about GC syncronization, and eliminates the possibility of getting a badly created object. All related fault handling is moved to pysqlite_statement_create(). Co-authored-by: Victor Stinner <vstinner@python.org>. (cherry picked from commit fffa0f92adaaed0bcb3907d982506f78925e9052) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* Add bpo-42914 to What's New (GH-25124)Miss Islington (bot)2021-06-032-0/+4
| | | | | | | | BPO-42914 was not added to the What's New in GH-24864. This includes it in the "Improved Modules" section. Automerge-Triggered-By: GH:gpshead (cherry picked from commit 4846ea95d1a121df5e8081e2a290f63d1419cad8) Co-authored-by: Wm. Keith van der Meulen <keith@wkeithvan.com>
* bpo-44022: Improve the regression test. (GH-26503)Miss Islington (bot)2021-06-031-1/+6
| | | | | | | It wasn't actually detecting the regression due to the assertion being too lenient. (cherry picked from commit e60ab843cbb016fb6ff8b4f418641ac05a9b2fcc) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* bpo-44282: Fix occasional test_incremental_editing failures on buildbots ↵Miss Islington (bot)2021-06-033-43/+49
| | | | | | | | (GH-26491) (GH-26499) Signed-off-by: Tal Einat <532281+taleinat@users.noreply.github.com> (cherry picked from commit adef445dc34685648bd0ea1c125df2ef143912ed) Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
* bpo-44285: getpath.c: Assert that env_file is NULL during an error check ↵Miss Islington (bot)2021-06-021-0/+1
| | | | | | | | (GH-26486) This was flagged by a static analyzer, but the logic of why this is NULL on error is hard to follow for humans as well. (cherry picked from commit bdb56902a3bfe12b10f85a941d5dd0eae739f1a8) Co-authored-by: stratakis <cstratak@redhat.com>
* bpo-43921: Fix test_ssl.test_pha_required_nocert() (GH-26489)Miss Islington (bot)2021-06-022-2/+11
| | | | | | | Fix test_pha_required_nocert() of test_ssl: catch two more EOF cases (when the recv() method returns an empty string). (cherry picked from commit 320eaa7f42b413cd5e5436ec92d4dc5ba150395f) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.10] bpo-44279: [doc] reword contextlib.suppress documentation (GH-26428) ↵Irit Katriel2021-06-011-2/+3
| | | | | | | | (GH-26480) (cherry picked from commit 87272b70f157af76cb14ff90d73dfc5d9bfb945a) Co-authored-by: MapleCCC <littlelittlemaple@gmail.com>
* bpo-44246: Remove note about access by index now that a compatibility shim ↵Miss Islington (bot)2021-05-311-4/+1
| | | | | | | | | is offered. (GH-26472) (#26473) (cherry picked from commit 78d9a9b1904f0e1d9db1e941c19782f4f5a881d4) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* [3.10] bpo-44246: Restore compatibility in entry_points (GH-26468) (GH-26471)Miss Islington (bot)2021-05-313-1/+125
| | | | | | | | | | | | | * [bpo-44246](): Entry points performance improvements. From importlib_metadata 4.3.1. * [bpo-44246](): Sync with importlib_metadata 4.4 (cherry picked from commit c34ed08d975fb7daa7b329f7c631647782290393) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> Automerge-Triggered-By: GH:jaraco
* 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