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
codecs.open().readlines(sizehint) bug #39564
Comments
codecs.open().readlines(sizehint) can return truncated |
Logged In: YES The script triggers the assertion error using at least |
Logged In: YES It's hard to say whether this is a bug or not. The sizehint From the docs: In your example the underlying open() implementation |
Logged In: YES To me, the phrase "*whole lines* totalling approximately |
Logged In: YES Good catch. I must have overread the "whole lines" bit :-) In that case, it's probably best to have .readlines() ignore |
Logged In: YES Ignoring sizehint and reading the whole file is probably A slightly more complicated approach would be to read Is there a way to differentiate between "the byte string |
Logged In: YES Ok, I'll fix codecs.py to ignore the sizehint argument then To answer your question: whether a byte string is incomplete |
Logged In: YES Fixed in CVS. |
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: