I don't think it's clever, it's quite unintuitive and ugly. To me anyway. If the author really wanted to cram everything into a list comprehension, the logical way to think about it is:
(
(int(tsc, 16), int(pc, 16))
for tsc, _, pc, *_ in (line.strip().split(",") for line in fp)
),
Which is, of course, almost as ugly. Just use a for loop and yield
Yeah, that's true, that day will come. Just like there will come a day you will go outside for the last time, have your favorite meal a last time, listen to a song for the last time or breathe for the last time. It's a sobering thought. But until that day you have plenty of opportunities to do all those things, and that includes loving new people!
I never used this feature personally. Do you think it’s better than a separate profile which you can launch with -p flag or a profile switcher extension?
Hi, I'm a Data Scientist with experience building and maintaining all kinds of Data and AI products for e-commerce (recommender systems, search, ranking, computer vision). I consider myself a generalist, so I'm interested and have experience in multiple different aspects of a modern AI/ML solution, including data gathering and analysis, data pipelining, large scale processing, model building and tuning, model serving, distributed systems, etc. In summary, I love building software for AI/ML :)
Which is, of course, almost as ugly. Just use a for loop and yield