commit | 37494b441aced0362d7edd2956ab3ea7801e60c8 | [log] [tgz] |
---|---|---|
author | Pablo Galindo <Pablogsal@gmail.com> | Wed Apr 14 02:36:07 2021 +0100 |
committer | GitHub <noreply@github.com> | Wed Apr 14 02:36:07 2021 +0100 |
tree | 45d9355cde5f7c71924e8df0f16ea2e0ad63eea8 | |
parent | 3bc694d5f3d4eb2e5d2f0b83e498b19662845d4e [diff] |
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?