[New-bugs-announce] [issue5433] Excessive optimization in IncrementalNewlineDecoder

Antoine Pitrou report at bugs.python.org
Sat Mar 7 00:06:42 CET 2009


New submission from Antoine Pitrou <pitrou at free.fr>:

This is with the io-c code:

>>> dec = io.IncrementalNewlineDecoder(None, translate=False)
>>> dec.newlines
>>> dec.decode("\u0A00")
'\u0a00'
>>> dec.newlines
'\n'

dec.newlines should have remained equal to None. It only affects the
computation of the newlines property and shouldn't produce incorrect
decoding results.

----------
assignee: pitrou
components: Extension Modules
messages: 83258
nosy: pitrou
priority: high
severity: normal
stage: needs patch
status: open
title: Excessive optimization in IncrementalNewlineDecoder
type: behavior
versions: Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5433>
_______________________________________


More information about the New-bugs-announce mailing list