On Sat, Dec 19, 2020 at 08:50:57PM -0800, Guido van Rossum wrote:
> On Sat, Dec 19, 2020 at 7:43 PM Steven D'Aprano <st...@pearwood.info> wrote:
> 
> > Thread is here:
> >
> >
> > https://mail.python.org/archives/list/python-ideas@python.org/message/EWQ2BOL3WVZAU2V2MT3HLXN3AEBHANNZ/
> >
> >
> > I don't think this needs to be a literal built-in, part of the
> > interpreter. I think it could be a library function which is added to
> > builtins on startup, like `help` and `quit`.
> >
> 
> That sounds like a very special status. Why not os.clear()?

I don't care where the implementation lives. But I think that it should 
be added to builtins for interactive use.

It seems to me that the primary use for this will be in the interactive 
interpreter. People are used to something like "cls" or "clear" from 
various shells. Using it in scripting is, I think, a secondary use-case. 
Given that, I think that like other conveniences for interactive use 
like `help`, it should be available without an import.

-- 
Steve
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/GJPUIXRXWR4DRKXU3ECNOBVWZPTKKOSU/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to