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 <rep...@bugs.python.org>
<http://bugs.python.org/issue28504>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to