summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-41025: Fix subclassing for zoneinfo.ZoneInfo (GH-20965) (GH-21876)Miss Islington (bot)2020-08-143-3/+5
| | | | | | | | | | | Prior to this change, attempting to subclass the C implementation of zoneinfo.ZoneInfo gave the following error: TypeError: unbound method ZoneInfo.__init_subclass__() needs an argument https://bugs.python.org/issue41025 (cherry picked from commit 87d8287865e5c9f137f6b5cf8c34c2c509eb5e9d) Co-authored-by: Paul Ganssle <paul@ganssle.io>
* bpo-41410: Fix outdated info in mkstemp docs (GH-21701)Miss Islington (bot)2020-08-142-5/+3
| | | | | | Automerge-Triggered-By: @ericvsmith (cherry picked from commit e55de68be3e5b977a17d3c0ac9805b0feff8fedc) Co-authored-by: Rishav Kundu <rk@rishav.io>
* bpo-41526: Fixed layout of final page of the installer (GH-21871)Miss Islington (bot)2020-08-133-5/+5
| | | | | (cherry picked from commit 6444ca946984c638c67a72aac22fd6d3cc650c16) Co-authored-by: Steve Dower <steve.dower@python.org>
* Fixed comment about pathlib.link_to: it was added in 3.8, not changed. ↵Miss Islington (bot)2020-08-131-1/+1
| | | | | | | (GH-21851) (cherry picked from commit a3eae43aeedb6e6a31adeab3c0c90961d05ab113) Co-authored-by: Facundo Batista <facundo@taniquetil.com.ar>
* bpo-41066: Update the comparison section for os vs pathlib (GH-21261)Miss Islington (bot)2020-08-131-0/+3
| | | | | (cherry picked from commit 0eb9deb4a62e6d9daa82bc2f67d1075864ca8ece) Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
* [3.9] bpo-41520: Fix second codeop regression (GH-21848)Terry Jan Reedy2020-08-133-8/+11
| | | | | | Fix the repression introduced by the initial regression fix. (cherry picked from commit c818b15fa59039de67022c29085d439fa5d3ef95) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.9] bpo-40979: refactored typing.rst; (mostly) same content, new ↵Guido van Rossum2020-08-122-614/+824
| | | | | | | | | sub-sections and ordering (GH-21574) (#21843) Also added PEP 585 deprecation notes. (cherry picked from commit ab72fdeb82) Co-authored-by: Luciano Ramalho <luciano@ramalho.org>
* bpo-41520: codeop no longer ignores SyntaxWarning (GH-21838)Miss Islington (bot)2020-08-123-2/+12
| | | | | (cherry picked from commit 369a1cbdee14d9f27356fb3a8bb21e4fde289d25) Co-authored-by: Victor Stinner <vstinner@python.org>
* Post 3.9.0rc1Łukasz Langa2020-08-111-1/+1
|
* Merge tag 'v3.9.0rc1' into 3.9Łukasz Langa2020-08-1125-35/+194
|\ | | | | | | Python 3.9.0rc1
| * Python 3.9.0rc1v3.9.0rc1Łukasz Langa2020-08-1125-35/+194
| |
* | [3.9] bpo-41504: Add links to asttokens, leoAst, LibCST and parso to ast ↵Guido van Rossum2020-08-111-2/+21
|/ | | | | | | | | docs (GH-21773) (GH-21830) (cherry picked from commit e3c971ccfa58afcb2656b71b95e10b9703f2ad32) Co-authored-by: Edward K. Ream <edreamleo@gmail.com> Co-authored-by: Edward K. Ream <edreamleo@gmail.com>
* 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>