This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients serhiy.storchaka, uburuntu, yselivanov
Date 2020-07-02.19:03:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1593716580.99.0.92861608258.issue41197@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-07-02 19:03:01serhiy.storchakasetrecipients: + serhiy.storchaka, yselivanov, uburuntu
2020-07-02 19:03:00serhiy.storchakasetmessageid: <1593716580.99.0.92861608258.issue41197@roundup.psfhosted.org>
2020-07-02 19:03:00serhiy.storchakalinkissue41197 messages
2020-07-02 19:03:00serhiy.storchakacreate