Serhiy Storchaka <[email protected]> added the comment:
And what happen when you accidentally use synchronous "with" instead of "async
with" with closing()?
with closing(SomeAPI()) as api:
...
I think it is intentionally that different functions/methods/classes are used
for synchronous and asynchronous operations.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue41197>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com