diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2020-04-28 23:11:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 23:11:32 (GMT) |
commit | 5e8c691594d68925213d36296ce7c4b3e90bcb1d (patch) | |
tree | 1b93ee2c24dd9944396aa98ba232f0db4e2893c1 /Python/pyarena.c | |
parent | 6d86a2331e6b64a2ae80c1a21f81baa5a71ac594 (diff) | |
download | cpython-5e8c691594d68925213d36296ce7c4b3e90bcb1d.zip cpython-5e8c691594d68925213d36296ce7c4b3e90bcb1d.tar.gz cpython-5e8c691594d68925213d36296ce7c4b3e90bcb1d.tar.bz2 |
bpo-32604: Add support for a "default" arg in channel_recv(). (GH-19770)
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.
Automerge-Triggered-By: @ericsnowcurrently
Diffstat (limited to 'Python/pyarena.c')
0 files changed, 0 insertions, 0 deletions