diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2017-12-09 18:00:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-09 18:00:05 (GMT) |
commit | 28d8d14013ade0657fed4673f5fa3c08eb2b1944 (patch) | |
tree | 4c24b73040f8f13eafd9216c934f2d27218e91d8 /Misc | |
parent | a9f8df646aac7fc94ced0aefd1ed2c8566d14d10 (diff) | |
download | cpython-28d8d14013ade0657fed4673f5fa3c08eb2b1944.zip cpython-28d8d14013ade0657fed4673f5fa3c08eb2b1944.tar.gz cpython-28d8d14013ade0657fed4673f5fa3c08eb2b1944.tar.bz2 |
bpo-32253: Deprecate with statement and bare await for asyncio locks (GH-4764)
* Add test for 'with (yield from lock)'
* Deprecate with statement for asyncio locks
* Document the deprecation
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2017-12-09-11-30-35.bpo-32253.TQHSYF.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2017-12-09-11-30-35.bpo-32253.TQHSYF.rst b/Misc/NEWS.d/next/Library/2017-12-09-11-30-35.bpo-32253.TQHSYF.rst new file mode 100644 index 0000000..2916410 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2017-12-09-11-30-35.bpo-32253.TQHSYF.rst @@ -0,0 +1,2 @@ +Deprecate ``yield from lock``, ``await lock``, ``with (yield from lock)`` +and ``with await lock`` for asyncio synchronization primitives. |