diff options
author | E-Paine <63801254+E-Paine@users.noreply.github.com> | 2021-05-07 23:52:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-07 23:52:01 (GMT) |
commit | 092f9ddb5e85665552c8207972cd393d492f764e (patch) | |
tree | 2d00de96496b038b1a2a88174d7b255899134966 /Misc | |
parent | b2ec37a7224318d466e0877790ed740ce8b4867d (diff) | |
download | cpython-092f9ddb5e85665552c8207972cd393d492f764e.zip cpython-092f9ddb5e85665552c8207972cd393d492f764e.tar.gz cpython-092f9ddb5e85665552c8207972cd393d492f764e.tar.bz2 |
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>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/IDLE/2021-05-05-09-45-24.bpo-44026.m2Z0zR.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/IDLE/2021-05-05-09-45-24.bpo-44026.m2Z0zR.rst b/Misc/NEWS.d/next/IDLE/2021-05-05-09-45-24.bpo-44026.m2Z0zR.rst new file mode 100644 index 0000000..bc4b680 --- /dev/null +++ b/Misc/NEWS.d/next/IDLE/2021-05-05-09-45-24.bpo-44026.m2Z0zR.rst @@ -0,0 +1,2 @@ +Include interpreter's typo fix suggestions in message line for +NameErrors and AttributeErrors. Patch by E. Paine. |