https://docs.python.org/3/library/warnings.html#warnings.catch_warnings reads:
If record is True, a list is returned that is progressively populated with objects as seen by a custom showwarning() function (which also suppresses output to sys.stdout).
Was it meant to say sys.stderr instead?
Otherwise, I don't understand why it mentions stdout specifically. I don't see anything about stdout elsewhere in the module docs or in the implementation.
Linked PRs
https://docs.python.org/3/library/warnings.html#warnings.catch_warnings reads:
Was it meant to say
sys.stderrinstead?Otherwise, I don't understand why it mentions
stdoutspecifically. I don't see anything aboutstdoutelsewhere in the module docs or in the implementation.Linked PRs
catch_warnings#130768