DEV Community

Discussion on: 10 Awesome Pythonic One-Liners Explained

Collapse
 
devmount profile image
Andreas

Good point, thank you for this clarification!

PS: For the sake of correctness: it's readlines() without the underscore, isn't it?

Collapse
 
bulletmark profile image
Mark Blakeney

Sorry, I was actually incorrect. I thought readlines() was a generator but apparently it isn't so I deleted my comment.