That does not change that this is how the default API in Python 2 works. It's by far not the only API to open files in 2.x. That however was not the point.
open has a keyword argument encoding. You can always be explicit.
a) people are not. b) not every api supports that. Case in point: filenames, environment variables and argv.
5
u/mitsuhiko Flask Creator May 26 '14
That does not change that this is how the default API in Python 2 works. It's by far not the only API to open files in 2.x. That however was not the point.
a) people are not. b) not every api supports that. Case in point: filenames, environment variables and argv.