[New-bugs-announce] [issue28504] Cleanup unicode_decode_call_errorhandler_wchar/writer
Xiang Zhang
report at bugs.python.org
Sat Oct 22 11:25:14 EDT 2016
New submission from Xiang Zhang:
The patch makes several cleanups to unicode_decode_call_errorhandler_wchar/writer:
1. Use U instead O! for argument parser, it ought to be more efficient and write less code.
2. In theory, if inputobj is not bytes, there needs to be a goto onError, or it could crash. But PyUnicodeDecodeError_GetObject is guaranteed to return bytes, so we can remove the incomplete branch.
3. On success, we don't need Xdecref.
----------
components: Interpreter Core
files: unicode_decode_call_errorhandler_*.patch
keywords: patch
messages: 279198
nosy: haypo, serhiy.storchaka, xiang.zhang
priority: normal
severity: normal
stage: patch review
status: open
title: Cleanup unicode_decode_call_errorhandler_wchar/writer
type: enhancement
versions: Python 3.7
Added file: http://bugs.python.org/file45189/unicode_decode_call_errorhandler_*.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28504>
_______________________________________
More information about the New-bugs-announce
mailing list