Yury Selivanov added the comment: > Would it maybe make sense to implement this as adding an argument to > GET_AWAITABLE to indicate whether it was called from await, __anext__, > __aenter__ or __aexit__?
Yes, but it will make it a tad slower (which will also affect await performance). I'll run some benchmarks. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29922> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com