[issue24178] asyncio: support 'async with' for locks

2015-05-13 Thread Yury Selivanov
Yury Selivanov added the comment: Guido, thanks for review. Closing the issue. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24178

[issue24178] asyncio: support 'async with' for locks

2015-05-13 Thread Yury Selivanov
New submission from Yury Selivanov: The attached patch makes Locks, Conditions, Semaphores, and BoundedSemaphores support new 'async with' syntax. Because the patch contains a file that will only be checked in to the CPython repo (test_pep492.py), I decided to create the issue on

[issue24178] asyncio: support 'async with' for locks

2015-05-13 Thread Yury Selivanov
Yury Selivanov added the comment: Updated patch is attached: - '__aenter__' returns None - with await lock is now supported. -- Added file: http://bugs.python.org/file39363/alock_2.patch ___ Python tracker rep...@bugs.python.org

[issue24178] asyncio: support 'async with' for locks

2015-05-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 616f15f05530 by Yury Selivanov in branch 'default': Issue 24178: support 'async with' for asyncio locks. https://hg.python.org/cpython/rev/616f15f05530 -- nosy: +python-dev ___ Python tracker