I run a script that uses a module that prints a lot of things on the screen, and I run out of RAM.
I can not get the module to write nothing. Python Shell stores absolutely everything, and I want to clear it.
To such questions, the only answer I could find was to write os.system('cls') (on Windows), but it does not delete anything.
Is there a way to clear my Python shell or limit its size?
thanks
Edit
Well, this question was marked as a duplicate, and I am asked to clarify why this is not so. I maintain that os.system('cls') does not work, while the answer to the question that I support, I repeat, should write os.system('cls') .
source share