[New-bugs-announce] [issue8923] Remove unused "errors" argument from _PyUnicode_AsDefaultEncodedString()

STINNER Victor report at bugs.python.org
Sun Jun 6 20:28:41 CEST 2010


New submission from STINNER Victor <victor.stinner at haypocalc.com>:

_PyUnicode_AsDefaultEncodedString() has two arguments: unicode (input string) and errors. If errors is not NULL, it calls Py_FatalError()!

The argument is useful: all functions call it with errors=NULL.

Attached patch removes the argument.

----------
components: Unicode
files: unicode_errors.patch
keywords: patch
messages: 107204
nosy: haypo
priority: normal
severity: normal
status: open
title: Remove unused "errors" argument from _PyUnicode_AsDefaultEncodedString()
versions: Python 3.2
Added file: http://bugs.python.org/file17575/unicode_errors.patch

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


More information about the New-bugs-announce mailing list