New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_fmode = O_TEXT is obsolete #46312
Comments
Please consider setting the default file mode to O_BINARY. O_TEXT Days when majority of "C" codebase actually DID process text files AND |
O_TEXT is not obsolete, as the behaviour is different even in a win2k. >>> a = open("ubuntu-6.06.1-server-i386.iso")
>>> len(a.read())
46424
>>> a = open("ubuntu-6.06.1-server-i386.iso", "rb")
>>> len(a.read())
453132288 I agree that the default should be Binary. Note that this would break BTW, I don't know if this was already discussed, approved, rejected, etc. |
Actually, python 3.0 goes even further from "C":
|
There were binary files. *THEN* dos and mac came with text files. To |
Exactly. First computer files were filled with numbers, then with Imagine that "binary" is a kind of language. And not spoken by many |
I'll close this issue as rejected. As discussed, changing it in 2.x |
Why Guido can't speak for py3k here in personal? I've just wasted two days debugging this O_BINARY flag when HgGit stopped to work on windows. We need at least document this for os.open() properly. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: