[pypy-dev] RFC: draft idea for making for loops automatically close iterators
Armin Rigo
armin.rigo at gmail.com
Mon Oct 24 02:42:02 EDT 2016
Hi,
On 24 October 2016 at 06:03, hubo <hubo at jiedaibao.com> wrote:
> long time, which is what PyPy is for. Files may not be the most critical
> problem, the real problem is LOCK - when you use with on a lock, there are
> chances that it never unlocks.
Bah. I would say that it makes the whole "with" statement pointless
in case you're using "await" somewhere inside it. In my own honest
opinion it should not be permitted to do that at all---like, it should
be a SyntaxError to use "await" inside a "with". (This opinion is
based on a very vague understanding of async/await in the first place,
so please take it with a grain of salt.)
Just my 2 cents.
Armin
More information about the pypy-dev
mailing list