News for hackers. Stuff that matters.
Re:Unpythonic Python by gbog on Wednesday April 09, 2014 @07:44PM (#7563291)
I also tend to wrap loops in expressions like that. Then, in almost every interesting loop, I suddenly want to log something or add intermediary computation, and have to refactor into the good old boring for loop.
Re:Unpythonic Python by Too on Thursday April 10, 2014 @12:53AM (#7564267)
Pipeline your generator through a logging generator :)