[issue4565] Rewrite the IO stack in C
Daniel Diniz
report at bugs.python.org
Tue Mar 3 22:09:36 CET 2009
Daniel Diniz <ajaksu at gmail.com> added the comment:
A couple of typos in the Python implementation.
http://codereview.appspot.com/22061/diff/1/11
File Lib/_pyio.py (right):
http://codereview.appspot.com/22061/diff/1/11#newcode266
Line 266: fp is closed after the suite of the with statment is complete:
statment -> statement
http://codereview.appspot.com/22061/diff/1/11#newcode844
Line 844: self._reset_read_buf()
Setting "_read_buf" and "_read_pos" directly on __init__ may help
introspection tools.
http://codereview.appspot.com/22061/diff/1/11#newcode963
Line 963: DEAFULT_BUFFER_SIZE. If max_buffer_size is omitted, it
defaults to
DEAFULT_BUFFER_SIZE -> DEFAULT_BUFFER_SIZE
http://codereview.appspot.com/22061/diff/1/11#newcode1728
Line 1728: decoder = self._decoder or self._get_decoder()
'decoder' isn't used in this method, is this here for an useful
side-effect?
http://codereview.appspot.com/22061/diff/1/11#newcode1784
Line 1784: more_line = ''
This seems unused.
http://codereview.appspot.com/22061
----------
nosy: +ajaksu2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4565>
_______________________________________
More information about the Python-bugs-list
mailing list