[Python-Dev] Add more SyntaxWarnings?

Oleg Broytman phd at phdru.name
Wed Jan 30 16:14:28 EST 2019


On Wed, Jan 30, 2019 at 07:12:21PM +0100, Stefan Behnel <stefan_ml at behnel.de> wrote:
> > I have a vague recollection that a certain computer system (Amiga?) had a
> > 'why' command. If it reported an error, you could type "why" and it would
> > give you more details.
> > 
> > I suspect that all that was happening was that when the error occurred it
> > would store the additional details somewhere that the 'why' command would
> > simply retrieve.
> 
> So ??? are you suggesting to use the webbrowser module inside of the REPL to
> look up the exception message of the previously printed stack trace in
> stack overflow when a user types "why()"?
> 
> I faintly recall someone implementing something in that direction. It's
> probably in some package on PyPI.

   It doesn't have to be all web. Compare how ``help()`` works at the
python REPL, ``pydoc name`` at the command line, and
``pydoc -p`` + a browser.

> Stefan

Oleg.
-- 
    Oleg Broytman            https://phdru.name/            phd at phdru.name
           Programmers don't die, they just GOSUB without RETURN.


More information about the Python-Dev mailing list