(original) (raw)
> > Can someone please clarify the exact behaviour of "async with"?
>
> "async with" is expected to behave essentially the same way that
> normal "with" does as far as return, break, and continue are concerned
> (i.e. calling \_\_aexit\_\_ without an exception set, so it's more like
> try/finally than it is try/else).
>
> Would you mind filing a documentation bug for that? We clearly missed
> that the semantics described in the new documentation didn't actually
> match the original with statement semantics (even though matching
> those semantics is the intended behaviour).
> "async with" is expected to behave essentially the same way that
> normal "with" does as far as return, break, and continue are concerned
> (i.e. calling \_\_aexit\_\_ without an exception set, so it's more like
> try/finally than it is try/else).
>
> Would you mind filing a documentation bug for that? We clearly missed
> that the semantics described in the new documentation didn't actually
> match the original with statement semantics (even though matching
> those semantics is the intended behaviour).