summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* docs: Fix typos and use anchor for internal link (GH-30236)Miss Islington (bot)2021-12-261-9/+9
| | | | | (cherry picked from commit c1d7a6bed9f2bb8cb7612d196fc0caba016fa98c) Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
* Doc: Fix link in multiprocessing.starmap pointing to builtin map. (GH-26560)Miss Islington (bot)2021-12-261-2/+3
| | | | | (cherry picked from commit 32096df0e00e692ee6dc688e62213bff0dffd573) Co-authored-by: Julien Palard <julien@palard.fr>
* [3.10] Remove a NEWS entry for bpo-45878 (GH-30258)Serhiy Storchaka2021-12-261-2/+0
| | | The docs linter complains about it, and in general news entries for such changes are not required.
* [3.10] bpo-46032: Check types in singledispatch's register() at declaration ↵Serhiy Storchaka2021-12-253-3/+87
| | | | | | | | | | time (GH-30050) (GH-30254) The registry() method of functools.singledispatch() functions checks now the first argument or the first parameter annotation and raises a TypeError if it is not supported. Previously unsupported "types" were ignored (e.g. typing.List[int]) or caused an error at calling time (e.g. list[int]). (cherry picked from commit 078abb676cf759b1e960f78390b6e80f256f0255)
* bpo-45878: convert `try/except` to `self.assertRaises` in ↵Miss Islington (bot)2021-12-242-14/+6
| | | | | | | | `Lib/ctypes/test/test_functions.py` (GH-29721) (GH-29748) (cherry picked from commit b48ac6fe38b2fca9963b097c04cdecfc6083104e) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* bpo-46150: ensure `fakeuser` does not exist in ↵Miss Islington (bot)2021-12-242-5/+15
| | | | | | | | `PosixPathTest.test_expanduser` (GH-30240) Ensure `fakeuser` does not exist in `PosixPathTest.test_expanduser` (cherry picked from commit b8de8b7039cee47465b2af9950b0b9ed2d3f2903) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* Allow test_pathlib to pass on systems where fakeuser exists. (GH-30244)Miss Islington (bot)2021-12-241-1/+1
| | | | | (cherry picked from commit d8880677a79ba4e70bbe7583eecf573bfceb7e98) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* bpo-46106: Update OpenSSL to 1.1.1m (GH-30211) (GH-30224)Ned Deily2021-12-229-74/+16
| | | | Co-authored-by: Ned Deily <nad@python.org> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* Update potentially confusing note for mean. (GH-30174) (GH-30220)Miss Islington (bot)2021-12-211-4/+5
| | | | (cherry picked from commit e9a01e231aae19fd1249368e477a60bc033b2646)
* [3.10] bpo-46110: Add a recursion check to avoid stack overflow in the PEG ↵Pablo Galindo Salgado2021-12-205-3073/+4424
| | | | | | | | parser (GH-30177) (GH-30214) Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>. (cherry picked from commit e9898bf153d26059261ffef11f7643ae991e2a4c) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-23819: Get rid of assert statements in test_asyncio (GH-30212) (GH-30213)Miss Islington (bot)2021-12-2010-63/+102
| | | | | | | | | | To keep checks even if run tests with optimized Python. Either use special assertion methods like assertEqual() or raise an AssertionError explicitly. (cherry picked from commit 6ca78affc8023bc5023189d64d8050857662042a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.10] bpo-46104: Fix example broken by GH-30148 (GH-30203) (GH-30209)Miss Islington (bot)2021-12-201-1/+1
| | | | | | | | | See discussion in GH-30179. (cherry picked from commit 7c5c3f7254d78babcaf7a2ec187fd6ec53b8403c) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Automerge-Triggered-By: GH:Fidget-Spinner
* bpo-46076: Improve documentation for per-attribute docstrings with ↵Miss Islington (bot)2021-12-191-3/+6
| | | | `__slots__` (GH-30109) (GH-30206)
* [3.10] bpo-46129: Rewrite asyncio.locks tests with IsolatedAsyncioTestCase ↵Andrew Svetlov2021-12-193-253/+216
| | | | | | | | (GH-30198) (GH-30202) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>. (cherry picked from commit 9c06fd89514a9a2865e2adcc472095f6949cecb2) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* bpo-46130: [docs] Add anchor for whatsnew/3.10 type hint section (GH-30199)Miss Islington (bot)2021-12-191-1/+2
| | | | | | This allows the title to be translated to other languages without linking problems. (cherry picked from commit 3d3615f41f4ea73fe6707eb3673dfab482cb6a2b) Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
* bpo-46113: Minor fixes in stdtypes documentation (GH-30167) (GH-30186)Miss Islington (bot)2021-12-181-8/+8
| | | | | | | | | | | | * Fix-1 - isidentifier() function output * Fix-2 Update the str.splitlines() function parameter * Fix-3 Removed unwanted full stop for str and bytes types double quotes examples. * Fix-4 Updated class dict from **kwarg to **kwargs (cherry picked from commit 6f2df4295123f8b961d49474b7668f7564a534a4) Co-authored-by: Vivek Vashist <vivekvashist@gmail.com>
* bpo-46099: Fix pthread_getcpuclockid test on Solaris (GH-30140) (GH-30183)Miss Islington (bot)2021-12-181-5/+6
| | | | | | | | Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> (cherry picked from commit 427a490c495cde8a152e938c6f02be65620e3e59) Co-authored-by: Jakub Kulík <Kulikjak@gmail.com> Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
* [3.10] bpo-46104: Reduce use of pre-PEP 526 syntax in typing docs (GH-30148) ↵Miss Islington (bot)2021-12-181-9/+8
| | | | | | | | | (GH-30179) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> (cherry picked from commit 6ada013df170b0afb6b61a0d942388c6fd81cbc9) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.10] bpo-46044: Annotate deprecated sdists formats (GH-30043) (#30154)Miss Islington (bot)2021-12-171-19/+22
| | | | | | | (cherry picked from commit ecdc0ccede5f9ac4042ff56f295d81df2f428950) Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com> Co-authored-by: Brett Cannon <brett@python.org> Co-authored-by: Éric <merwok@netwok.org>
* bpo-46114: Fix OpenSSL version check for 3.0.1 (GH-30170)Miss Islington (bot)2021-12-174-3/+8
| | | | | (cherry picked from commit 2985feac4e02d590bb78bcce9e30864be53280ac) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-45755: [typing] Reveal class attributes of generic in generic aliases in ↵Miss Islington (bot)2021-12-173-0/+17
| | | | | | | `dir()` (GH-29962) (cherry picked from commit d6e13747161d7b634b47d2d3d212ed3be4a21fab) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* bpo-46111: Fix unittest tests in optimized mode (GH-30163)Miss Islington (bot)2021-12-173-3/+6
| | | | | (cherry picked from commit 95a922b3bb3af247ec141d73fcdfbf68bb1d32a5) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Fix a typo in the message from make_ssl_certs. (GH-30152) (GH-30161)Miss Islington (bot)2021-12-171-1/+1
| | | | | | | | The file is utils.py not util.py. Automerge-Triggered-By: GH:gpshead (cherry picked from commit 69ef1b59983065ddb0b712dac3b04107c5059735) Co-authored-by: Yilei "Dolee" Yang <yileiyang9@gmail.com>
* bpo-46105: Honor spec when generating requirement specs with urls and ↵Miss Islington (bot)2021-12-163-2/+15
| | | | | | | extras. (GH-30151) (cherry picked from commit 109d96602199a91e94eb14b8cb3720841f22ded7) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* bpo-28816: [doc] clarify that zipimport invokes importers only for python ↵Miss Islington (bot)2021-12-161-2/+2
| | | | | | | | files (GH-30060) (GH-30133) (cherry picked from commit a951c95a13c3555ac8fb1c8ee615ba3930ccc6f7) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* Fix the output of built-in iter() function example in Iterators (Section ↵Miss Islington (bot)2021-12-161-1/+1
| | | | | | | | 9.8) of The Python Tutorial (GH-30110) Updated the output for it=iter(s) from <iterator object at 0x00A1DB50> to <str_iterator object at 0x10c90e650> (cherry picked from commit c5d18a5014f649368b5a4bca94e9ec7d2908b481) Co-authored-by: Vivek Vashist <vivekvashist@gmail.com>
* Add Positional only arguments forward slash (/) to sorted() function in ↵Miss Islington (bot)2021-12-151-1/+1
| | | | | | | | | | Built-in Functions document (GH-30113) sorted() function is missing forward slash (/) in Built-in Functions documentation page. Automerge-Triggered-By: GH:asvetlov (cherry picked from commit f025ae63dccf96c4a1d781a6438bd9ed1502f0a1) Co-authored-by: Vivek Vashist <vivekvashist@gmail.com>
* bpo-26952: [argparse] clearer error when formatting an empty mutually… ↵Miss Islington (bot)2021-12-153-0/+11
| | | | | | | (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)
* bpo-46059: Clarify pattern-matching example in "control flow" docs (GH-30079)Miss Islington (bot)2021-12-141-3/+5
| | | | | | | | The "Color" example in the pattern-matching section of the "control flow" documentation is not immediately runnable, leading to confusion. Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> (cherry picked from commit 1cbb88736c32ac30fd530371adf53fe7554be0a5) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.10] bpo-46063: Improve algorithm for computing which rolled-over log ↵Miss Islington (bot)2021-12-143-5/+83
| | | | | file… (GH-30093) (GH-30094) Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
* Clarify new_event_loop return value. (GH-30078) (GH-30088)Miss Islington (bot)2021-12-131-1/+1
| | | | | (cherry picked from commit e09705f58fc2ff3cc2720c6337ae3f48bb7cb090) Co-authored-by: Paul Bryan <pbryan@anode.ca>
* [3.10] bpo-37602: Clarify that the lib2to3 nonzero fixer changes only ↵Irit Katriel2021-12-131-1/+2
| | | | | | | definitions (GH-30075) (GH-30085) (cherry picked from commit 481f3ffdbe40bd19677a1ba0ac2e7cece8949b47) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [3.10] bpo-27718: Fix help for the signal module (GH-30063) (GH-30080)Serhiy Storchaka2021-12-133-3/+21
| | | | | | | | | 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-45840: Improve cross-references in the data model documentation ↵Alex Waygood2021-12-132-54/+77
| | | | | (GH-29633) (GH-30077) (cherry picked from commit c0521fe49fd75e794a38a216813658ab40185834)
* bpo-46054: Fix parsing error when parsing non-utf8 characters in source ↵Miss Islington (bot)2021-12-123-8/+19
| | | | | | | | | 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-125-823/+866
| | | | | | | | | (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>
* [3.10] bpo-46040: Fix removal text for @asyncio.coroutine (GH-30061)Andrew Svetlov2021-12-112-1/+3
|
* bpo-19737: Improved the documentation for globals (GH-29823) (GH-30041)Miss Islington (bot)2021-12-112-3/+4
| | | | | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 4fe5585240f64c3d14eb635ff82b163f92074b3a) Co-authored-by: 180909 <734461790@qq.com>
* Fix markup buglet in Doc/howto/annotations.rst (GH-29802) (GH-29805)Miss Islington (bot)2021-12-111-1/+1
| | | | | (cherry picked from commit 94daf39b2f7e9b50e7ae7a16caeef804f8e37ae3) Co-authored-by: Guido van Rossum <guido@python.org>
* bpo-45822: Minor cleanups to the test_Py_CompileString test (GH-29750) ↵Miss Islington (bot)2021-12-112-9/+9
| | | | | | | (GH-29758) (cherry picked from commit abfc794bbf2c6a0939ddd81b6e700c46944ba87a) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [doc] Clarify MRO precedence in descriptor super binding section (GH-29539) ↵Miss Islington (bot)2021-12-111-1/+1
| | | | | | | | | (GH-29669) A similar sentence is present in the 'Invocation from super' section of the descriptor HOWTO, where it is already correct. (cherry picked from commit ee49484c0f0d0d79e8fc40835da10b78f89ae503) Co-authored-by: Jouke Witteveen <j.witteveen@gmail.com>
* [3.10] bpo-13236: Flush the output stream more often in unittest (GH-29864) ↵Serhiy Storchaka2021-12-104-4/+44
| | | | | | | | (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>
* bpo-42114: ctypes documentation: fix winmode parameter default value ↵Miss Islington (bot)2021-12-101-3/+3
| | | | | | | | (GH-29976) (GH-30037) Signed-off-by: Louis Sautier <sautier.louis@gmail.com> (cherry picked from commit c1051e08b3c6d9045322763876a4b0aea98d79f9) Co-authored-by: Louis Sautier <sautier.louis@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-46000: Improve NetBSD curses compatibility (GH-29947)Miss Islington (bot)2021-12-102-2/+3
| | | | | (cherry picked from commit 2fb797e93c6bbd44dfcbe23f63acfa240a87e48a) Co-authored-by: Thomas Klausner <tk@giga.or.at>
* bpo-42182: stdtypes doc - update and fix links to several dunder methods ↵Miss Islington (bot)2021-12-101-9/+10
| | | | | | | (GH-27384) (cherry picked from commit 8c74713d0e349c27518080945d5f040dfd52a56e) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* bpo-46018: Ensure that math.expm1 does not raise on underflow (GH-29997)Miss Islington (bot)2021-12-092-2/+7
| | | | | (cherry picked from commit 3363e1cb05d0d19ed172ea63606d8cb6268747fc) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-46025: Fix a crash in the atexit module for auto-unregistering functions ↵Miss Islington (bot)2021-12-093-1/+21
| | | | | | | | | (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>
* bpo-45391: mark UnionType as a class in documentation (GH-28757)Miss Islington (bot)2021-12-091-1/+1
| | | | | | Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net> (cherry picked from commit e2cfc89e099b8fad5d8d5bd7f59dadffb6078778) Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>