> On 19 Jan 2022, at 21:19, Ethan Furman <et...@stoneleaf.us> wrote:
>
> On 1/19/22 1:10 PM, Barry Scott wrote:
> > On 18 Jan 2022, at 19:59, Pablo Galindo Salgado wrote:
>
> >> We considered using colours and other markers such as bold text, but that
> >> opens a considerable can of worms with
> >> detecting in all systems and configurations if that can be done. I have
> >> been told that some of these situations are
> >> quite tricky and is not as easy as checking for tty support.
> >>
> >
> > In the apps I work on as open source and paid work tracebacks are put into
> > log files so that
> > we can fix the rare bugs. It would not be nice if the traceback module API
> > started providing
> > text with embedded escape sequences without a way to turn then off in the
> > API.
>
> An environment variable would solve this, yes? The default would be using
> the underlining carets, but an env var could switch that to using color
> instead.
I have no objection to use of an env var as the default at python startup.
But not as the only way to set a feature. I find it a poor API.
Give me a set/get API and I can design my app to behave in a suitable
way for its use.
It means that I cannot have all the logic of the app in the python sources.
Barry
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at
https://mail.python.org/archives/list/python-dev@python.org/message/AJZ7EELGOPHLEUJHPUBXIXTWV4G2QOH6/
Code of Conduct: http://python.org/psf/codeofconduct/