homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Excessive optimization in IncrementalNewlineDecoder
Type: behavior Stage: needs patch
Components: Extension Modules Versions: Python 3.1
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: pitrou Nosy List: pitrou
Priority: high Keywords: patch

Created on 2009年03月06日 23:06 by pitrou, last changed 2022年04月11日 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
issue5433.patch pitrou, 2009年03月06日 23:36
Messages (3)
msg83258 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2009年03月06日 23:06
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.
msg83260 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2009年03月06日 23:36
This patch fixes the bug without incurring any significant slowdown.
msg83261 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2009年03月06日 23:41
Committed in r70208.
History
Date User Action Args
2022年04月11日 14:56:46adminsetgithub: 49683
2009年03月06日 23:41:18pitrousetstatus: open -> closed
resolution: fixed
messages: + msg83261
2009年03月06日 23:36:35pitrousetfiles: + issue5433.patch
keywords: + patch
messages: + msg83260
2009年03月06日 23:06:41pitroucreate

AltStyle によって変換されたページ (->オリジナル) /