Uh oh!
There was an error while loading. Please reload this page.
gh-124665: add _PyCodec_UnregisterError and _codecs._unregister_error - #124677
Conversation
vstinner
left a comment
There was a problem hiding this comment.
I don't think that we should start with a public function. I would prefer to start with a private function instead, it's simpler.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
picnixz
commented
Sep 28, 2024
@vstinner I followed your advice and only introduced the new array. We'll just need to keep in mind that if we add a new policy, then we should also add it to the array and test it. |
PyCodec_UnregisterError and codecs.unregister_error_PyCodec_UnregisterError and _codecs._unregister_errorUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| /* | ||
| * Un-register the error handling callback function error under the given | ||
| * name. Only non-built-in error handlers can be un-registered. |
There was a problem hiding this comment.
Below you use "custom". Maybe it's better name than "non-built-in". I don't know.
vstinner
commented
Sep 29, 2024
Merged, thank you. |
_PyCodec_UnregisterErrorto un-register custom error handlers #124665📚 Documentation preview 📚: https://cpython-previews--124677.org.readthedocs.build/