summaryrefslogtreecommitdiff
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-26952: [argparse] clearer error when formatting an empty mutually… ↵Miss Islington (bot)2021-12-152-0/+10
| | | | | | | (GH-30099) (GH-30114) (cherry picked from commit 86de99588db3beff964137f4fe27dd1077a09b35) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [3.10] bpo-46063: Add 'delay=True' to file handler initialization. ↵Miss Islington (bot)2021-12-141-1/+2
| | | | (GH-30103) (GH-30104)
* [3.10] bpo-46063: Improve algorithm for computing which rolled-over log ↵Miss Islington (bot)2021-12-142-5/+66
| | | | | file… (GH-30093) (GH-30094) Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
* [3.10] bpo-27718: Fix help for the signal module (GH-30063) (GH-30080)Serhiy Storchaka2021-12-132-3/+19
| | | | | | | | | Functions signal(), getsignal(), pthread_sigmask(), sigpending(), sigwait() and valid_signals() were omitted. If __all__ is not defined all non-builtin functions should have correct __module__. (cherry picked from commit e08c0d8eec528f1d7a282ee19bcadb9aae9ec123)
* bpo-46054: Fix parsing error when parsing non-utf8 characters in source ↵Miss Islington (bot)2021-12-121-0/+12
| | | | | | | | | files (GH-30068) (GH-30069) (cherry picked from commit 4325a766f5f603ef6dfb8c4d5798e5e73cb5efd5) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-46042: Improve SyntaxError locations in the symbol table (GH-30059) ↵Miss Islington (bot)2021-12-121-3/+4
| | | | | | | | | (GH-30064) (cherry picked from commit 59435eea08d30796174552c0ca03c59b41adf8a5) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-45822: Minor cleanups to the test_Py_CompileString test (GH-29750) ↵Miss Islington (bot)2021-12-111-8/+8
| | | | | | | (GH-29758) (cherry picked from commit abfc794bbf2c6a0939ddd81b6e700c46944ba87a) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.10] bpo-13236: Flush the output stream more often in unittest (GH-29864) ↵Serhiy Storchaka2021-12-113-4/+42
| | | | | | | | (GH-29929) It can prevent some losses when output to buffered stream.. (cherry picked from commit f42a06ba279c916fb67289e47f9bc60dc5dee4ee) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.10] bpo-43749: Ensure current exe is copied when using venv on windows ↵Miss Islington (bot)2021-12-101-2/+3
| | | | | (GH-25216) (GH-30034) Co-authored-by: Ian Norton <inorton@gmail.com>
* bpo-46025: Fix a crash in the atexit module for auto-unregistering functions ↵Miss Islington (bot)2021-12-091-0/+15
| | | | | | | | | (GH-30002) (GH-30005) (cherry picked from commit f0d290d25cad66e615ada68ba190b8a23ac1deaa) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.10] bpo-46009: Do not exhaust generator when send() method raises ↵Mark Shannon2021-12-081-0/+8
| | | | | | | | | | | | (GH-29986). (GH-29988) * [3.10] bpo-46009: Do not exhaust generator when send() method raises (GH-29986). (cherry picked from commit 69806b9516dbe092381f3ef884c7c64bb9b8414a) Co-authored-by: Mark Shannon <mark@hotpy.org> * Rename variable after cherry-pick. * Add NULL check.
* Fix double-space in exception message (GH-29955)Miss Islington (bot)2021-12-081-1/+1
| | | | | (cherry picked from commit c602c1be439e295fed9ebab47e895ef1d9df28be) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* [3.10] bpo-46004: Fix error location for loops with invalid targets ↵Pablo Galindo Salgado2021-12-071-0/+1
| | | | | | | (GH-29959). (GH-29961) (cherry picked from commit 1c7a1c3be08ee911d347fffd2716f3911ba751f9) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-46001: Change OverflowError to RecursionError in JSON library docstrings ↵Miss Islington (bot)2021-12-072-3/+3
| | | | | | | (GH-29943) (cherry picked from commit 8db06528cacc94e67eb1fb2e4c2acc061a515671) Co-authored-by: James Gerity <snoopjedi@gmail.com>
* Python 3.10.1v3.10.1Pablo Galindo2021-12-061-152/+351
|
* bpo-45664: Fix resolve_bases() and new_class() for GenericAlias instance as ↵Miss Islington (bot)2021-12-052-1/+17
| | | | | | | a base (GH-29298) (cherry picked from commit 2b318ce1c988b7b6e3caf293d55f289e066b6e0f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-45663: Fix is_dataclass() for dataclasses which are subclasses of ↵Miss Islington (bot)2021-12-052-1/+13
| | | | | | | types.GenericAlias (GH-29294) (cherry picked from commit 446be166861b2f08f87f74018113dd98ca5fca02) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-45662: Fix the repr of InitVar with a type alias to the built-in class ↵Miss Islington (bot)2021-12-052-1/+5
| | | | | | | | (GH-29291) For example, InitVar[list[int]]. (cherry picked from commit 1fd4de5bddbbf2a97cdbac4d298c89e1156bdc6c) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-27946: Fix possible crash in ElementTree.Element (GH-29915)Miss Islington (bot)2021-12-051-0/+12
| | | | | | | Getting an attribute via attrib.get() simultaneously with replacing the attrib dict can lead to access to deallocated dict. (cherry picked from commit d15cdb2f32f572ce56d7120135da24b9fdce4c99) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-43498: Fix dictionary iteration error in _ExecutorManagerThread (GH-24868)Miss Islington (bot)2021-11-291-1/+1
| | | | | (cherry picked from commit 7431448b817d3bf87f71661cf8f3d537807ab2e2) Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
* bpo-45614: Fix traceback display for exceptions with invalid module name ↵Irit Katriel2021-11-292-0/+13
| | | | | (GH-29726) (GH-29826) (cherry picked from commit 4dfae6f38e1720ddafcdd68043e476ecb41cb4d5)
* bpo-37658: Actually return result in race condition (GH-29202)Miss Islington (bot)2021-11-292-36/+10
| | | | | (cherry picked from commit 934a82623793e9d52b85f74d5395d65927a52205) Co-authored-by: Sam Bull <aa6bs0@sambull.org>
* [3.10] bpo-19460: Add test for MIMENonMultipart (GH-29817) (GH-29818)Miss Islington (bot)2021-11-281-0/+14
| | | | Co-authored-by: 180909 <wjh180909@gmail.com> Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* bpo-44353: Correct docstring for `NewType` (GH-29785)Miss Islington (bot)2021-11-261-1/+1
| | | | | | The docstring for `typing.NewType` is no longer strictly accurate, now that `NewType` is a class, rather than a function (cherry picked from commit 93c65df83cef71a4bc77d71afecdec8744c4f73a) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.10] bpo-45727: Only trigger the 'did you forgot a comma' error suggestion ↵Pablo Galindo Salgado2021-11-252-3/+3
| | | | | | | if inside parentheses. (GH-29767) Backport of GH-29757 Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
* bpo-45859: Mark test_field_descriptor in test_collections as CPython-only ↵Miss Islington (bot)2021-11-221-0/+1
| | | | | | | | | (GH-29691) (GH-29708) (cherry picked from commit 4fad314246399b69ef0c57ba8527d9efade99069) Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de> Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
* bpo-44649: Fix dataclasses(slots=True) with a field with a default, but ↵Miss Islington (bot)2021-11-222-6/+35
| | | | | | | | init=False (GH-29692) Special handling is needed, because for non-slots dataclasses the instance attributes are not set: reading from a field just references the class's attribute of the same name, which contains the default value. But this doesn't work for classes using __slots__: they don't read the class's attribute. So in that case (and that case only), initialize the instance attribute. Handle this for both normal defaults, and for fields using default_factory. (cherry picked from commit d3062f672c92855b7e9e962ad4bf1a67abd4589b) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
* bpo-45852: Fix the Counter/iter test for statistics.mode() (GH-29667) ↵Miss Islington (bot)2021-11-201-4/+7
| | | | | | | | | | (GH-29671) Suggested by Stefan Pochmann. (cherry picked from commit 48744db70ed519c1566c22bf123a0e1f5c69253f) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com> Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* Added kw_only parameter to make_dataclasses. (GH-29679)Miss Islington (bot)2021-11-202-2/+13
| | | | | (cherry picked from commit f7638dd0f90b2afd9295ee179119f4a29859953a) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
* [3.10] bpo-45727: Make the syntax error for missing comma more consistent ↵Pablo Galindo Salgado2021-11-201-1/+2
| | | | | | | (GH-29427) (GH-29647) (cherry picked from commit 546cefcda75d7150b55c8bc1724bea35a1e12890) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.10] bpo-45848: Allow the parser to get error lines from encoded files ↵Łukasz Langa2021-11-201-0/+13
| | | | | | | (GH-29646) (GH-29661) (cherry picked from commit fdcc46d9554094994f78bedf6dc9220e5d5ee668) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-45837: Note tiltangle is not deprecated, it's really settiltangle (GH-29629)Hugo van Kemenade2021-11-191-1/+2
|
* bpo-45835: Fix race condition in test_queue (GH-29601) (GH-29612)Miss Islington (bot)2021-11-181-11/+11
| | | | | | | | | | | | | Some of the tests in test_queue had a race condition in which a non-sentinel value could be enqueued after the final sentinel value leading to not all the inputs being processed (and test failures). This changes feed() to enqueue a sentinel once the inputs are exhausted, which guarantees that the final queued object is a sentinel. This requires the number of feeder threads to match the number of consumer threads, but that's already the case in the relevant tests. (cherry picked from commit df3e53d86b2ad67da9ac2b5a3f56257d1f394982) Co-authored-by: Sam Gross <colesbury@gmail.com>
* [3.10] bpo-45826: Fix a crash in suggestions.c by checking for `traceback is ↵Łukasz Langa2021-11-181-0/+31
| | | | | | | None` (GH-29590) (GH-29602) (cherry picked from commit 5d90c467c02ffefdb13c1abc83a171db1a99ffad) Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
* [3.10] bpo-45822: Respect PEP 263's coding cookies in the parser even if ↵Pablo Galindo Salgado2021-11-181-0/+8
| | | | | | | flags are not provided (GH-29582) (GH-29586) (cherry picked from commit da20d7401de97b425897d3069f71f77b039eb16f) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-42540: reallocation of id_mutex should not force default allocator ↵Miss Islington (bot)2021-11-171-0/+16
| | | | | | | | | | (GH-29564) Unlike the other locks reinitialized by _PyRuntimeState_ReInitThreads, the "interpreters.main->id_mutex" is not freed by _PyRuntimeState_Fini and should not force the default raw allocator. (cherry picked from commit 736684b1bb67369a2e95a9f621752deead44e7ef) Co-authored-by: Sam Gross <colesbury@gmail.com>
* [3.10] bpo-45716: Improve the error message when using True/False/None as ↵Pablo Galindo Salgado2021-11-161-2/+8
| | | | | | | keywords in a call (GH-29413). (GH-29428) (cherry picked from commit e2d65630f36712dbdbf7711520c985c526a5cc25) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* ensure deprecation warning from assertDictContainsSubset points at actual ↵Anthony Sottile2021-11-152-1/+6
| | | | test code (#26497)
* bpo-45677: Reword first section of `sqlite3` docs (GH-29326) (GH-29566)Miss Islington (bot)2021-11-151-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-45677: Avoid addressing the reader as 'you' in sqlite3 docs * Adjust wording * Adjust wording again * Typo * Update Doc/library/sqlite3.rst Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> * Address review: adjust wording * Update Doc/library/sqlite3.rst Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Update Lib/sqlite3/__init__.py Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Update Doc/library/sqlite3.rst Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Update Doc/library/sqlite3.rst Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Update Lib/sqlite3/__init__.py Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Update Doc/library/sqlite3.rst Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Apply Alex' suggestion, and apply 80 char limit to PR * Minor adjustment Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> (cherry picked from commit 6c5a312fb6d92e879bf4c570b94e18bb9ffe5970) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-45752: Remove "array" from list of things that cannot be copied in ↵Miss Islington (bot)2021-11-141-2/+2
| | | | | | | | `copy` module docstring (GH-29555) Automerge-Triggered-By: GH:asvetlov (cherry picked from commit c2c4fdf5ea6e9cba4ef469d08a52abb9cfa756a5) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* bpo-45738: Fix computation of error location for invalid continuation (GH-29550)Miss Islington (bot)2021-11-131-1/+7
| | | | | | characters in the parser (cherry picked from commit 25835c518aa7446f3680b62c1fb43827e0f190d9) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [bpo-45765] Fix distribution discovery on empty path. (GH-29487) (GH-29510)Miss Islington (bot)2021-11-131-1/+1
| | | | | | | (cherry picked from commit 6ec0dec7b7b50d4fee5b2b66cf38e4291bcdf44c) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* bpo-45235: Revert an argparse bugfix that caused a regression (GH-29525) ↵Miss Islington (bot)2021-11-122-13/+6
| | | | (GH-29530)
* [3.10] bpo-45773: Stop "optimizing" certain jump patterns (GH-29526)Brandt Bucher2021-11-111-0/+7
|
* [3.10] bpo-45757: Fix bug where dis produced an incorrect oparg on ↵Irit Katriel2021-11-092-0/+22
| | | | EXTENDED_ARG before a no-arg opcode (GH-29480) (GH-29506)
* bpo-27313: Use non-deprecated methods for tracing (GH-29425) (GH-29450)Miss Islington (bot)2021-11-061-5/+5
| | | | | (cherry picked from commit cc1cbcbb2d75cacc31ff3359d83043bc7bd5a89d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-45644: Make json.tool read infile before writing to outfile (GH-29273) ↵Miss Islington (bot)2021-11-062-7/+23
| | | | | | | | | | | | | | (GH-29445) so that $ python -m json.tool foo.json foo.json doesn't result in an empty foo.json. Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 815dad42d53fc40a6dc057e067f4a8a885c3b858) Co-authored-by: Chris Wesseling <chris.wesseling@protonmail.com>
* bpo-45678: Add more ``singledispatchmethod`` tests (GH-29412) (GH-29424)Miss Islington (bot)2021-11-051-0/+99
| | | | | | | | | | In order to fix a bug in the 3.9 branch in GH-29394, more tests were added to ``test_functools.py`` to ensure that ``singledispatchmethod`` still correctly wrapped a target method, even if the target method had already been wrapped by multiple other decorators. This PR brings the new tests into the 3.11 and 3.10 branches as well. (cherry picked from commit 32f55d1a5de66f9a86964fc0655d7a006a9d90b9) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* bpo-45160: Fix refleak in test_ttk_guionly introduced in GH-28291 (GH-29416) ↵Miss Islington (bot)2021-11-051-1/+4
| | | | | | | (GH-29421) (cherry picked from commit 54d1e3f72ed1ad8e860888c30ee7a285b931c0d1) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-27313: Fix ttk_guionly tests failing on Framework builds on macOS ↵Miss Islington (bot)2021-11-051-46/+20
| | | | | | | (GH-29411) (GH-29422) (cherry picked from commit e52f9bee802aa7a7fbd405dcc43bc2d1bea884d9) Co-authored-by: Łukasz Langa <lukasz@langa.pl>