New submission from Antoine Pitrou <pit...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue5433> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com