In the generic for statement pseudocode, could explist return a 4th, optional result which is assigned to a scoped variable? I assume a scoped var with value nil is a no-op on exit.
> >From the land of PEP: deterministic cleanup for iterators
>
> https://www.python.org/dev/peps/pep-0533/
>
> Can the prospective scoped locals be applied to this use case?
No. The proposed 'with' clause also does not seem to apply :-)
-- Roberto