[issue32253] Deprecate old-style locking in asyncio/locks.py

Yury Selivanov report at bugs.python.org
Sat Dec 9 11:11:38 EST 2017


Yury Selivanov <yselivanov at gmail.com> added the comment:

> This can make harder writing portable code that works in 2.7, 3.4 and 3.7.

asyncio for Python 3.4 is fairly outdated.  Most of the async packages today require 3.5+, as they usually use async/await syntax.  I say this sort of backwards compatibility (showing a warning) isn't really a big concern.  A bigger concern for us is new code using 'with await lock' pattern, hence the warning.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32253>
_______________________________________


More information about the Python-bugs-list mailing list