]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44026: Idle - display interpreter's 'did you mean' hints (GH-25912)
authorE-Paine <63801254+E-Paine@users.noreply.github.com>
Fri, 7 May 2021 23:52:01 +0000 (00:52 +0100)
committerGitHub <noreply@github.com>
Fri, 7 May 2021 23:52:01 +0000 (19:52 -0400)
commit092f9ddb5e85665552c8207972cd393d492f764e
tree2d00de96496b038b1a2a88174d7b255899134966
parentb2ec37a7224318d466e0877790ed740ce8b4867d
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>
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]