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 ncoghlan
Recipients John Belmonte, asvetlov, ncoghlan, njs, xtreak, yselivanov
Date 2019-08-09.17:19:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1565371157.38.0.0704166699166.issue37398@roundup.psfhosted.org>
In-reply-to
Content
I wouldn't be OK with magic switching in the behaviour of ContextDecorator (that's not only semantically confusing, it's also going to make the contextlib function wrappers even slower than they already are).

I'm also entirely unclear on what you would expect a synchronous context manager to do when applied to an asynchronous function, as embedding an "await" call inside a synchronous with statement is unlikely to end well.
History
Date User Action Args
2019-08-09 17:19:17ncoghlansetrecipients: + ncoghlan, njs, asvetlov, yselivanov, xtreak, John Belmonte
2019-08-09 17:19:17ncoghlansetmessageid: <1565371157.38.0.0704166699166.issue37398@roundup.psfhosted.org>
2019-08-09 17:19:17ncoghlanlinkissue37398 messages
2019-08-09 17:19:17ncoghlancreate