On Sun, May 10, 2020 at 7:34 PM Andrew Barnert via Python-ideas <python-ideas@python.org> wrote:
On May 10, 2020, at 14:33, Christopher Barker <pythonchb@gmail.com> wrote:
>
> Having a "tabnanny-like" function / module in the stdlib would be nice, though I'd think a stand alone module in PyPi would be almost as good, and a good way to see if it gains traction.

Good point.

Plus, it might well turn out that, say, the right thing for most Windows users and the right thing for most iOS Pythonista users is sufficiently different that two separate defancier packages are better than a one-size-fits-all could be, which we’d find out a lot more easily if people go out and use it in the field than if we try to design it here.

> BTW -- there are a whole lot of Syntax Errors that a semi smart algorithm could provide meaningful suggestions about about. I'm pretty sure that's come up before on this list, but maybe  "helpful" mode you could run Python in that would do that for all Syntax errors that it could. We could even have a way for folks to extend it with additional checks.

Yes, please do contribute to support more cases (see below). :-)

 

This already exists on PyPI. Actually, there are a few different ones.

One of them (I think friendly-tracebacks?) is very detailed. One of the authors sometimes posts about it here,

Somebody called me?

 
when we’re talking about how some exception should be improved, with an example showing that they’ve already thought of it and done something better than is being proposed in the list.:)

Well, that's kind of you to say.

I definitely had not thought of that one. Barebone ssue filed: https://github.com/aroberge/friendly-traceback/issues/45 ; I (or anyone else) will need to add more details.

I really need to find the time ro resume work on friendly-traceback....  I do need to find a way to have friendly-traceback available as a plugin for VS Code, PyCharm, SublimeText and perhaps Jupyter notebooks.  It can already work with Mu and Thonny.  ( Due to the way Idle runs code and deals with exceptions, it is impossible to add it as a simple plugin to Idle, most unfortunately.)

For anyone interested, even if you do not want to add support for other cases, feel free to file issues and suggest additions to friendly-traceback.

André Roberge