[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: (not) handling new programming idioms with grace
- From: Patrick Donnelly <batrick@...>
- Date: Tue, 24 Jul 2018 14:46:40 -0700
On Sat, Jul 21, 2018 at 4:55 AM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
>> >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 :-)
do
local f, s, var = explist
local <mark> s = s -- added!
while true do
...
Am I missing something?
--
Patrick Donnelly