On Sat, Oct 17, 2020 at 5:40 AM Jonathan Crall <erote...@gmail.com> wrote: > > I just want to point out that I can think of a valid use case for `clf`. I'm > not sure if it was mentioned. > > In the case where you have a script that produces a lot of output, a common > task might be scrolling to the beginning to check an output. If your screen > was not fresh, and you had a lot of previous output (say from running the > script multiple times), then it is hard to find the beginning unless you have > previously cleared the screen. >
This is exactly why I think this should NOT be made too easy. That's a perfect example of an attractive nuisance: instead of creating a divider (say, a half a dozen blank lines, or a row of hyphens with a blank or two each side), you're throwing away all information from the previous output, making it impossible to compare the two. Once your script has a clear-screen at the start of it, you lose the option to examine history, whereas a simple few blank lines would have a similar effect without losing anything. If it is added to the stdlib, I hope that it's buried away where people find it only if they're actually looking for it. There ARE valid use-cases, but there are far far more cases where it shouldn't be used. ChrisA _______________________________________________ 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/7BZX6GHHWZ4IIP5ITRYCRKKHDGCM3OVS/ Code of Conduct: http://python.org/psf/codeofconduct/