◐ Shell
clean mode source ↗

bpo-32604: Add support for a "default" arg in channel_recv(). by ericsnowcurrently · Pull Request #19770 · python/cpython

This allows the caller to avoid creation of an exception when the channel is empty (just like dict.get() works). ChannelEmptyError is still raised if no default is provided.

https://bugs.python.org/issue32604

Automerge-Triggered-By: @ericsnowcurrently