Re:Specific ways to write better Python (2017)
by jennasys on Sunday June 21, 2020 @03:54AM
(#23590567)
I used to have an issue with readability of list comprehensions until I started using them on a regular basis. Now they actually make more sense to me and just feel more like Python than using map/filter. I think if you are used to using map, especially if you are coming from another language, it can take a bit of effort to retrain your brain. In general I don't think there is a significant performance advantage either way except for in very specific cases.
[ Parent
| on HN ]
There are no comments on this comment yet.