Serhiy Storchaka <storchaka+cpyt...@gmail.com> 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 <rep...@bugs.python.org> <https://bugs.python.org/issue41197> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com