News for hackers. Stuff that matters.
Re:Fascination of Awk by randlet on Friday March 24, 2023 @09:45AM (#35288998)

    floats = [float(v) for v in integerList]
or less idiomatic

    floats = map(float, integerList)
Re:Fascination of Awk by wiredfool on Friday March 24, 2023 @10:49AM (#35289760)
Except that these are different -- the second returns an iterator (at least in python3). You'd need

   list(map(float, integerList)) 
for them to be equivalent.

(It doesn't matter in a lot of cases, but there are enough edges where it does. Json serialization for one)