A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-November/040113.html below:

[Python-Dev] other "magic strings" issues

[Python-Dev] other "magic strings" issues [Python-Dev] other "magic strings" issuesBill Janssen janssen at parc.com
Fri Nov 7 18:25:31 EST 2003
> myFile = file(filename, 'rb')
> 
> (while of course we're going to keep accepting it forever) is not quite as=
>  
> readable and maintainable as, e.g.:
> 
> myFile = file(filename, file.READ + file.BINARY)

Actually, the default should be BINARY, however it works.  I think
it's insane that 'r' works on Unix but breaks on Windows when reading
a JPEG file.

Bill

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4