summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Python 3.9.0rc1v3.9.0rc1Łukasz Langa2020-08-1125-35/+194
|
* bpo-41475: Fix note in "What's new in 3.7" (GH-21733) (#21832)Miss Islington (bot)2020-08-111-1/+1
| | | | | (cherry picked from commit 76643c10ede2813ca921464fe839e81caee21a84) Co-authored-by: Ram Rachum <ram@rachum.com>
* Add PEP 573 additions to What's New (GH-21374) (GH-21831)Miss Islington (bot)2020-08-111-0/+7
| | | | | (cherry picked from commit af3a6a8caefc2b202c831ab908677c1a4371cc27) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* bpo-38912: regrtest logs unraisable exception into sys.__stderr__ (GH-21718) ↵Victor Stinner2020-08-112-5/+15
| | | | | | | | (GH-21827) regrtest_unraisable_hook() temporarily replaces sys.stderr with sys.__stderr__ to help to display errors when a test captures stderr. (cherry picked from commit 701b63894fdb75b12865b9be6261ce4913da76f5)
* bpo-40548: Fix "Check for source changes (pull_request)" GH Action job ↵Miss Islington (bot)2020-08-101-1/+14
| | | | | | | | | | | | | (GH-21806) On Git 2.28, "git diff master..." (3 dots) no longer works when "fetch --depth=1" is used, whereas it works on Git 2.26. Replace "..." (3 dots) with ".." (2 dots) in the "git diff" command computing the list of modified files between the base branch and the PR branch. (cherry picked from commit eaa551702d80fd67219c48ee6a13ffb571ca360b) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-41514: Fix buggy IDLE test (GH-21808)Miss Islington (bot)2020-08-101-5/+5
| | | | | | | | | test_run method test_fatal_error failed when run twice, as with python -m test -m test_fatal_error test_idle test_idle because func.called was not reinitialized to 0. This bug caused a failure on a refleak buildbot. (cherry picked from commit 416f0b71ba84fe83ee2ba4399b8a28712702980b) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.9] bpo-41194: Convert _ast extension to PEP 489 (GH-21807)Victor Stinner2020-08-102-197/+251
| | | | | | | | | | | | * bpo-41194: Convert _ast extension to PEP 489 (GH-21293) Convert the _ast extension module to PEP 489 "Multiphase initialization". Replace the global _ast state with a module state. (cherry picked from commit b1cc6ba73a51d5cc3aeb113b5e7378fb50a0e20a) * bpo-41204: Fix compiler warning in ast_type_init() (GH-21307) (cherry picked from commit 1f76453173267887ed05bb3783e862cb22365ae8)
* Update macOS installer welcome files for 3.9.0rc. (GH-21804)Ned Deily2020-08-102-10/+0
|
* bpo-41468: Improve and test IDLE run error exit (GH-21798)Miss Islington (bot)2020-08-094-10/+49
| | | | | | A message box pops up when an unexpected error stops the run process. Tell users it is likely a random glitch, but report it if not. (cherry picked from commit f2e161c27964a59bc5ab20d96f87ba5862c6222d) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Doc: Add output to example code in programming FAQ (GH-21346)Miss Islington (bot)2020-08-091-34/+37
| | | | | | | | Add output hint to document, part faq/programming, section [How do I write a function with output parameters (call by reference)?](https://docs.python.org/3/faq/programming.htmlGH-how-do-i-write-a-function-with-output-parameters-call-by-reference). This patch make the output hint just like prefix code block. (cherry picked from commit 67acf74c4eaf64a860cc1bcda6efe6e9cb01f89b) Co-authored-by: Jiajie Zhong <zhongjiajie955@hotmail.com>
* Improve renamed test_run.RecursionLimitTest (GH-21794)Miss Islington (bot)2020-08-091-3/+5
| | | | | | PEP 8 style and new comments. (cherry picked from commit 8b67bf907c51846853127176cbb2982d102a2c2d) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-41455: Provide a link to how the third generation is collected in the GC ↵Miss Islington (bot)2020-08-081-3/+3
| | | | | | | | docs (GH-21703) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> (cherry picked from commit 82ca8fada15b121866530f2cdac1b7055be4a244) Co-authored-by: Yaroslav Pankovych <31005942+P-Alban@users.noreply.github.com>
* bpo-41497: Fix potential UnicodeDecodeError in dis CLI (GH-21757)Miss Islington (bot)2020-08-082-1/+2
| | | | | (cherry picked from commit a4084b9d1e40c1c9259372263d1fe8c8a562b093) Co-authored-by: Konge <zkonge@outlook.com>
* Doc: Add a link to tutorial page from `open()` doc (GH-21737)Miss Islington (bot)2020-08-081-1/+2
| | | | | | | | Adds a link to the "Reading and Writing Files" page so users can more easily discover how file handles are handled with the `with` context manager vs without it. (cherry picked from commit 705f14556545699ab615ec98f707b438f9603767) Co-authored-by: Benjamin Kane <bbkane@users.noreply.github.com>
* bpo-41490: Update ensurepip to install pip 20.2.1 and setuptools 49.2.1 ↵Steve Dower2020-08-076-2/+74
| | | | (GH-21774)
* Update Azure Pipelines build to use Ubuntu 18.04 and move triggers into YAML ↵Miss Islington (bot)2020-08-072-80/+10
| | | | | | | files (GH-21776) (cherry picked from commit 102b4988b1a10d5a61034381aea15521d17c210c) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-41473: Skip test_gdb with gdb 9.2 to work around gdb bug (GH-21768)Miss Islington (bot)2020-08-071-0/+5
| | | | | | | | | gdb 9.2 on Fedora Rawhide is not reliable, see: * https://bugs.python.org/issue41473 * https://bugzilla.redhat.com/show_bug.cgi?id=1866884 (cherry picked from commit e27a51c11e10d5df79b3e48dc3e7bfedfad5a794) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-41098: Doc: Add missing deprecated directives (GH-21162)Miss Islington (bot)2020-08-072-2/+18
| | | | | | | PyUnicodeEncodeError_Create has been deprecated with `Py_DEPRECATED` macro. But it was not documented. (cherry picked from commit 46e19b61d31ba99f049258efa4ff1334856a3643) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
* bpo-39871: Fix an error in a news entry (GH-21749)Miss Islington (bot)2020-08-071-1/+1
| | | | | (cherry picked from commit 54636355805dd2877bb54fbad8d967e1ddd8b553) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-41492: Fixes the description appearing in UAC prompts on Windows (GH-21754)Miss Islington (bot)2020-08-064-1/+20
| | | | | (cherry picked from commit 777b611c8c5676b80898a429f71d28e59bddc49d) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-41482: Fix error in ipaddress.IPv4Network docstring (GH-21736)Miss Islington (bot)2020-08-051-1/+1
| | | | | (cherry picked from commit 52f98424a55e14f05dfa7483cc0faf634a61c9ff) Co-authored-by: Eric L. Frederich <eric.frederich@gmail.com>
* bpo-40726: handle uninitalized end_lineno on ast.increment_lineno (GH-20312)Miss Islington (bot)2020-08-053-3/+23
| | | | | (cherry picked from commit 8f4380d2f5839a321475104765221a7394a9d649) Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
* bpo-36346: Doc: Update removal schedule of legacy Unicode (GH-21479)Miss Islington (bot)2020-08-051-9/+30
| | | | | | See PEP 623 for detail. (cherry picked from commit 270b4ad4df795783d417ba15080da8f95e598689) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
* bpo-41467: Fix asyncio recv_into() on Windows (GH-21720)Miss Islington (bot)2020-08-042-1/+4
| | | | | | | | On Windows, fix asyncio recv_into() return value when the socket/pipe is closed (BrokenPipeError): return 0 rather than an empty byte string (b''). (cherry picked from commit 602a971a2af3a685d625c912c400cadd452718b1) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-38156: Fix compiler warning in PyOS_StdioReadline() (GH-21721)Miss Islington (bot)2020-08-041-1/+1
| | | | | | incr cannot be larger than INT_MAX: downcast to int explicitly. (cherry picked from commit bde48fd8110cc5f128d5db44810d17811e328a24) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-41425: Make tkinter doc example runnable (GH-21706)Miss Islington (bot)2020-08-032-13/+18
| | | | | | Co-authored-by: Ankit Chandawala <achandaw@amazon.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit c36dbac588e1d99975f285a874bb20e9f5040af4)
* bpo-41424: Remove extra words in Tkinter-Packer documentation (GH-21707)Miss Islington (bot)2020-08-031-6/+5
| | | | | (cherry picked from commit ecaf949cc487887883c14dff7a96e09ac9404994) Co-authored-by: Nathan M <nathanmaynes@gmail.com>
* [3.9] bpo-40360: Handle PendingDeprecationWarning in test_lib2to3. ↵Karthikeyan Singaravelan2020-07-311-1/+4
| | | | | | | (GH-21694) (GH-21697) (cherry picked from commit cadda52d974937069eeebea1cca4229e2bd400df) Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
* bpo-41426 Fix grammar in curses.getmouse() documentation (GH-21677)Miss Islington (bot)2020-07-291-1/+1
| | | | | | Automerge-Triggered-By: @brettcannon (cherry picked from commit ba18c0b13ba3c08077ea3db6658328523823a33f) Co-authored-by: Sebastien Williams-Wynn <s.williamswynn.mail@gmail.com>
* Remove incorrect mention of method.__class__ in descriptor docs (GH-21665) ↵Miss Islington (bot)2020-07-291-4/+2
| | | | (GH-21667)
* closes bpo-38156: Always handle interrupts in PyOS_StdioReadline. (GH-21569)Miss Islington (bot)2020-07-292-30/+15
| | | | | | | | This consolidates the handling of my_fgets return values, so that interrupts are always handled, even if they come after EOF. I believe PyOS_StdioReadline is still buggy in that I/O errors will not result in a proper Python exception being set. However, that is a separate issue. (cherry picked from commit a74eea238f5baba15797e2e8b570d153bc8690a7) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* [3.9] Improve blake2 comment for Victor (GH-20981) (GH-20982)Miss Islington (bot)2020-07-281-5/+7
| | | | | | | | | Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 8a0fe7b4544ba28eeea6e16ddb646bb0b5d2918e) Co-authored-by: Christian Heimes <christian@python.org>
* Fix `List_Append` description, list is extracted at TOS1[-i] (GH-21465)Miss Islington (bot)2020-07-281-1/+1
| | | | | (cherry picked from commit 34cd3e9f6a87f9c50edac893b0d5ae46c4e48ee3) Co-authored-by: Xiang Zhang <angwerzx@126.com>
* bpo-41412 and bpo-40948: Windows installer updates (GH-21656)Miss Islington (bot)2020-07-286-69/+25
| | | | | | | | Prevent installation on Windows 8 and earlier. Download UCRT on demand when required (non-updated Windows 8.1 only) Add reference to py launcher to post-install message (cherry picked from commit 37a06cbe5c17c2aa6ad938339fd42531a8a0bea0) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-41328: Replace mention of Hudson CI with Travis CI and AppVeyor (GH-21653)Miss Islington (bot)2020-07-281-1/+1
| | | | | (cherry picked from commit 5e3826785dcc64f8e1a8a7bde11b88fbb40943be) Co-authored-by: Dmytro Litvinov <litvinov.dmytro.it@gmail.com>
* [3.9] Validate the AST produced by the parser in debug mode (GH-21643) ↵Pablo Galindo2020-07-271-0/+9
| | | | | | | | (GH-21646) This will improve the debug experience if something fails in the produced AST. Previously, errors in the produced AST can be felt much later like in the garbage collector or the compiler, making debugging them much more difficult.. (cherry picked from commit 1332226b32da44087a55e1d71990ee6899dfd28a) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* [3.9] bpo-41045: Document debug feature of f-strings ('=') (GH-21509) (GH-21645)Guido van Rossum2020-07-272-5/+33
| | | | | | | Co-Authored-By: Rishi <rishi93dev@gmail.com> (cherry picked from commit 13efaec) Co-authored-by: amaajemyfren <32741226+amaajemyfren@users.noreply.github.com>
* [3.9] bpo-40939: Use the new grammar for the grammar specification ↵Guido van Rossum2020-07-273-4/+91
| | | | | | | | | documentation (GH-19969) (#21641) (We censor the heck out of actions and some other stuff using a custom "highlighter".) (cherry picked from commit 72cabb2aa636272e608285f5a6ba83b62be9be4e) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-41384: Raise TclError in tkinter.OptionMenu (GH-21601)Miss Islington (bot)2020-07-273-1/+7
| | | | | | | ... when an unknown option is passed. TypeError was being raised because a 2to3 fix was missing. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit f1d40f941a6483b1d4ea10f1051ace7b426fb8e7) Co-authored-by: Akuli <akuviljanen17@gmail.com>
* bpo-41182 selector: use DefaultSelector based upon implementation (GH-21257)Miss Islington (bot)2020-07-262-4/+29
| | | | | | | | | | | | | On some platform such as VMware ESXi, DefaultSelector fails to detect selector due to default value. This fix adds a check and uses the correct selector depending upon select implementation and actual call. Fixes: [bpo-41182]() Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> (cherry picked from commit bcd47837a9bf4806e559b40df73869493efcce27) Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
* bpo-41341: Recursive evaluation of ForwardRef in get_type_hints (GH-21553)Miss Islington (bot)2020-07-263-6/+21
| | | | | | | | The issue raised by recursive evaluation is infinite recursion with recursive types. In that case, only the first recursive ForwardRef is evaluated. (cherry picked from commit 653f420b53a3aa87316cef59de8d3f5d9e11deb4) Co-authored-by: wyfo <joperez@hotmail.fr>
* bpo-41385: Fix test_executable_without_cwd on Windows (GH-21608)Miss Islington (bot)2020-07-261-2/+4
| | | | | (cherry picked from commit b1a87300a06324c9fc7d6553906ed914489465aa) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-37309: NEWS for GH-41373 (GH-21612)Miss Islington (bot)2020-07-261-0/+4
| | | | | (cherry picked from commit af08db7bac3087aac313d052c1a6302bee7c9c89) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-39868: Add documentation for Assignment Expressions (walrus, PEP 572) ↵Miss Islington (bot)2020-07-251-2/+19
| | | | | | | (GH-18851) (cherry picked from commit f117cef25b5ffc4db9fbe373ddb65e14f59f0397) Co-authored-by: Shankar Jha <shankarj67@gmail.com>
* bpo-41314: fixed annotations __future__ version (GH-21616)Miss Islington (bot)2020-07-253-13/+15
| | | | | | PEP 563 was updated to change the release where `from __future__ import annotations` becomes the default (and only) behavior from 4.0 to 3.10. Update `__future__.py` and its docs to reflect this. (cherry picked from commit 0028c14073109595e7532ec00bb1e8bf39ecfb4d) Co-authored-by: YoSTEALTH <35307184+YoSTEALTH@users.noreply.github.com>
* bpo-38731: Fix NameError in command-line interface of py_compile (GH-21617)Berker Peksag2020-07-253-6/+60
|
* bpo-41373: IDLE: Fix saving files loaded with no newlines or mixed newlines ↵Miss Islington (bot)2020-07-252-0/+14
| | | | | | | | | | (GH-21597) Fixes regression in 3.8.4 and 3.9.0b4. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 0dd463c8a4269137ebed7cc29605c555030df94f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-32528: Document the change in inheritance of asyncio.CancelledError ↵Miss Islington (bot)2020-07-241-2/+4
| | | | | | | | | | | | (GH-21474) GH-msg373510 [bpo-32528]()/GH-13528 changed `asyncio.CancelledError` such that it no longer inherits from `concurrent.futures.CancelledError`. As this affects existing code, specifically when catching the latter instead of the former in exception handling, it should be documented in the "What's new in 3.8?" document. Automerge-Triggered-By: @1st1 (cherry picked from commit 2a5181829af394b82e8e8c917183c709ee72a2b7) Co-authored-by: JustAnotherArchivist <JustAnotherArchivist@users.noreply.github.com>
* bpo-41317: Remove reader on cancellation in asyncio.loop.sock_accept() ↵Miss Islington (bot)2020-07-233-7/+27
| | | | | | | (GH-21595) (cherry picked from commit 0dd98c2d00a75efbec19c2ed942923981bc06683) Co-authored-by: Alex Grönholm <alex.gronholm@nextday.fi>
* bpo-41366: Fix clang warning for sign conversion (GH-21592)Miss Islington (bot)2020-07-231-1/+1
| | | | | (cherry picked from commit 680254a8dc64e3ada00f88a7c42d41eb02108353) Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>