On Sat, Dec 19, 2020 at 7:43 PM Steven D'Aprano <steve@pearwood.info> 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 do agree with the motivation for doing this. (I've started doing more exploratory programming and I've felt this need clearly a few times.) I can't comment on the exact semantics or implementation (though I'd prefer it if it didn't have to run a subprocess).

IDLE should probably monkey-patch this so it does something reasonable in its shell window.

--Guido van Rossum (python.org/~guido)