We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f523453 commit 3a13b66Copy full SHA for 3a13b66
1 file changed
Lib/test/memory_watchdog.py
@@ -19,6 +19,8 @@ def watchdog(pid):
19
# fail the same way.
20
return
21
22
+ # Prefer sys.stdout.write() to print() to use a single write() syscall.
23
+ # print(msg) calls write(msg.encode()) and then write(b"\n").
24
sys.stdout.write(f" ... process data size: {mem / ONE_GIB:.1f} GiB\n")
25
sys.stdout.flush()
26
time.sleep(1)
0 commit comments