[issue24993] The C function PyCodec_NameReplaceErrors doesn't handle PyCapsule_Import() failure

Serhiy Storchaka report at bugs.python.org
Thu Sep 3 16:15:08 CEST 2015


Serhiy Storchaka added the comment:

> In which case the unicodedata module is missing? It's always part of CPython
> no?

It was optional in Python 2 (at least in Unicode-disabled build). Perhaps it 
can be exclude from custom build in Python 3 too.

> Yeah, it's not a good practice to *hide* errors. At least, your patch must
> log the error.

Then please commit your patch. We can reenable optional dependency later if it 
will be needed for embedded systems.

----------

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


More information about the Python-bugs-list mailing list