-
- Downloads
bpo-38530: Offer suggestions on AttributeError (#16856)
When printing AttributeError, PyErr_Display will offer suggestions of similar attribute names in the object that the exception was raised from: >>> collections.namedtoplo Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'collections' has no attribute 'namedtoplo'. Did you mean: namedtuple?
Showing
- Doc/library/exceptions.rst 7 additions, 0 deletionsDoc/library/exceptions.rst
- Doc/whatsnew/3.10.rst 22 additions, 2 deletionsDoc/whatsnew/3.10.rst
- Include/cpython/pyerrors.h 6 additions, 0 deletionsInclude/cpython/pyerrors.h
- Include/internal/pycore_pyerrors.h 2 additions, 0 deletionsInclude/internal/pycore_pyerrors.h
- Lib/test/test_exceptions.py 159 additions, 0 deletionsLib/test/test_exceptions.py
- Makefile.pre.in 1 addition, 0 deletionsMakefile.pre.in
- Misc/NEWS.d/next/Core and Builtins/2019-10-27-20-20-07.bpo-38530.ZyoDNn.rst 3 additions, 0 deletions...ore and Builtins/2019-10-27-20-20-07.bpo-38530.ZyoDNn.rst
- Objects/exceptions.c 70 additions, 3 deletionsObjects/exceptions.c
- Objects/object.c 43 additions, 10 deletionsObjects/object.c
- PCbuild/pythoncore.vcxproj 1 addition, 0 deletionsPCbuild/pythoncore.vcxproj
- Python/pythonrun.c 11 additions, 1 deletionPython/pythonrun.c
- Python/suggestions.c 146 additions, 0 deletionsPython/suggestions.c
Loading
Please register or sign in to comment