
#299 Will McGugan drops by
Python Bytes
00:00
Using the F Clause Within Te Comprehension
If you're going to do an if section, right enou f, yougn to say, x for x in collection if something. Before the walrus operater, you had to call that function twice no matter what. It's really nicee, yes. Thit's pretty cool. Hadn't thought about doing it within within t the the f clause within te comprehension or something. Yes? Ih, i suppose you could emalistic m expression of the return val funk te then use ip or something. But super awkward, right? E, this is the one where there was no other way. There is no way, in in three seven to do this without calling
Transcript
Play full episode