I'm trying to make a game engine using the python command line but sys.stdout.write and print('',end='') bog down the command line and crash it.
I've tried stdout and print's end keyword argument, but they crash the command line. What's going on?
This code using print without the end argument works fine:
while True:
print(' = === ===== ======= ========= =========== ============= YYYYYYYYYYY ================================================================================')
While this, which uses sys.stdout.write to prevent the new line from printing, has problems:
import sys
while True:
sys.stdout.write(' = === ===== ======= ========= =========== ============= YYYYYYYYYYY ================================================================================')
sys.stdout.flush()
I expect it to run fast with print and end or sys.stdout, but instead the console bogs down and crashes.