On Tue, 22 Mar 2016 10:55 pm, Chris Angelico wrote:
> While we're on the subject of Pythonic ways to read files, this is NOT.
>
> http://thedailywtf.com/articles/finding-the-file
>
> It's also not idiomatic C# code either, though...
Obviously not. They should have used a switch.
I like the comment from "PWolff":
A loop might be faster to write (for a human) and easier
to maintain, but it takes significantly longer to run.
(Several ppm in this case, I assume.)
(PPM? Parts per million?)
Unless PWolff is being too-ironic-by-half, I expect to see his work featured
on The Daily WTF soon.
I like this one:
http://thedailywtf.com/articles/string-cheese
--
Steven
--
https://mail.python.org/mailman/listinfo/python-list