]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44026: Idle - display interpreter's 'did you mean' hints (GH-25912)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 8 May 2021 00:35:25 +0000 (17:35 -0700)
committerGitHub <noreply@github.com>
Sat, 8 May 2021 00:35:25 +0000 (20:35 -0400)
commit5a5237c6d08ed97458b0903d6836624168df0b51
treef3af69678ae8173f7e4596d40f7350f75044e2a8
parent13de28f17af02563cb8c6d0f6da3c178a4241ff3
bpo-44026: Idle - display interpreter's 'did you mean' hints (GH-25912)

A C function accessible by the default exception handler, but not by python code,
finds the existing name closest to the name causing a name or attribute error.  For
such errors, call the default handler after capturing stderr and retrieve its message line.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 092f9ddb5e85665552c8207972cd393d492f764e)
Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
Lib/idlelib/NEWS.txt
Lib/idlelib/idle_test/test_run.py
Lib/idlelib/run.py
Misc/NEWS.d/next/IDLE/2021-05-05-09-45-24.bpo-44026.m2Z0zR.rst [new file with mode: 0644]