Re:Python 3.11 vs 3.10 performance
by dragonwriter on Wednesday July 06, 2022 @09:33PM
(#32008981)
In the example from the end of the earlier post:
[ Parent
| on HN ]
I suppose that works, although readability is not great, to put it mildly.
Re:Python 3.11 vs 3.10 performance
by texaslonghorn5 on Wednesday July 06, 2022 @11:21PM
(#32009580)
Much better would be
[(y:=x.ComputeSomething()) for x in xs if y.IsFoo and y.IsBar]