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 email@example.com wrote:
Thread is here:
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.