]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-46236: Add Py_UNICODE_REPLACEMENT_CHARACTER doc (#132706)
authorStan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Tue, 22 Apr 2025 12:16:51 +0000 (13:16 +0100)
committerGitHub <noreply@github.com>
Tue, 22 Apr 2025 12:16:51 +0000 (14:16 +0200)
Co-authored-by: Victor Stinner <vstinner@python.org>
Doc/c-api/unicode.rst

index 6a20b0cd8ddae6401fb4c5b1e0f6466b6355dcd6..1b426ff3841ca42c57fd70daf4ff47c546240246 100644 (file)
@@ -1026,6 +1026,17 @@ generic ones are documented for simplicity.
 Generic Codecs
 """"""""""""""
 
+The following macro is provided:
+
+
+.. c:macro:: Py_UNICODE_REPLACEMENT_CHARACTER
+
+   The Unicode code point ``U+FFFD`` (replacement character).
+
+   This Unicode character is used as the replacement character during
+   decoding if the *errors* argument is set to "replace".
+
+
 These are the generic codec APIs: