[ python-Bugs-844561 ] codecs.open().readlines(sizehint) bug
SourceForge.net
noreply at sourceforge.net
Tue Nov 18 12:22:40 EST 2003
Bugs item #844561, was opened at 2003-11-18 11:22
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=844561&group_id=5470
Category: Unicode
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Jeff Epler (jepler)
Assigned to: M.-A. Lemburg (lemburg)
Summary: codecs.open().readlines(sizehint) bug
Initial Comment:
codecs.open().readlines(sizehint) can return truncated
lines. The attached script, which uses
readlines(sizehint) to count the number of lines in a
file, demonstrates the problem. Correct output would
be 1000 in both cases, but different values are
returned depending on sizehint because of the truncated
lines.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=844561&group_id=5470
More information about the Python-bugs-list
mailing list