That caches though. You can see it when you strace it.
python3 -u -c 'import sys
while (1): sys.stdout.write("1")'| pv>/dev/null
427KiB/s python3 -c 'import sys
while (1): sys.stdout.write("1")'| pv>/dev/null
6.08MiB/sUsing python 3.9.7 on macOS Monterey.