News for hackers. Stuff that matters.

Sentack

Re:Advanced Python Mastery – A Course by David Beazley on Wednesday July 19, 2023 @11:09AM (#36787739)
I too have run into this situation, and while list comprehension makes it possible, it's never clean looking.

Honestly, this is the approach I've been using even though I hate it. Specially if your code is going to be read by anyone other than you.