The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)
Steven D'Aprano
steve at pearwood.info
Tue Mar 22 08:15:21 EDT 2016
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
More information about the Python-list
mailing list