def print ( cls , * args , * * kwargs ) : # pylint: disable=protected-access with _shared . _PRINT_LOCK : print ( * args , * * kwargs ) _sys . stdout . flush ( )
realtime copy of python print window
Print synchronized .
def print(cls, *args, **kwargs):
        """Print synchronized."""
        # pylint: disable=protected-access
        with _shared._PRINT_LOCK:
            print(*args, **kwargs)
            _sys.stdout.flush()