Otherwise the <expr> part is lost when yielding from a loop. The `begin` part should be removed when appropriate.
Otherwise the part is lost when yielding from a loop. The
beginpart should be removed when appropriate.