[issue44026] IDLE doesn't offer "Did you mean?" for AttributeError and NameError

Pablo Galindo Salgado report at bugs.python.org
Tue May 4 15:55:17 EDT 2021


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

Those are intesting options, I will think about this. I am still afraid of adding more APIs in this area as having arbitrary Python getting call in the middle of handling the exceptions it can be quite tricky: think that we are handling an exception already so other exceptions can mess up stuff in very subtle ways or we need to ignore exceptions and that can also be dangerous.

Another thing we could do is reproduce the feature in idle itself with a custom display hook, which would be easier as we can just use difflib. It would be slightly different than the built-in one but honestly I don't think that's a problem at all. I understand that other people may think differently so I am open minded as well. But I wanted to clarify what are my worries :)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44026>
_______________________________________


More information about the Python-bugs-list mailing list