Sorry -- I can't find the thread, but there was a discussion on this list
about whether there should be a built in for clearing the terminal screen.
I'm was on the fence about it -- but one more data point:
One of my beginning Python students just submitted code with this in it:
def clear_screen():
'''
Function: clear_screen() (Windows/Unix)
Input: None
Process: Clear Screen
Output: None
'''
if (opSys == 'Windows'):
os.system('cls')
else:
os.system('clear')
return None
Which makes me think -- yes, it would be nice to have that available in the
standard lib somewhere.
-CHB
--
Christopher Barker, PhD
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and Web Development
- wxPython, numpy, scipy, Cython
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/N2G5MDPST6IMUQCK6LLAUOVIJIOOC2XJ/
Code of Conduct: http://python.org/psf/codeofconduct/