Re:Understanding a Python Closure Oddity
by abecedarius on Monday June 17, 2024 @04:55PM
(#40710945)
See my other reply about how [x for x in y] now works. It'd be a variation on that.
I agree the current semantics are better by the measure of performance of the simplest possible implementation. Though that's not Python's main design goal.
I agree the current semantics are better by the measure of performance of the simplest possible implementation. Though that's not Python's main design goal.