We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67ad6f7 commit 000ad3fCopy full SHA for 000ad3f
Doc/c-api/unicode.rst
@@ -650,8 +650,8 @@ APIs:
650
Return a mapping suitable for decoding a custom single-byte encoding.
651
Given a Unicode string *string* of up to 256 characters representing an encoding
652
table, returns either a compact internal mapping object or a dictionary
653
- mapping character ordinals to byte values. Raises a :exc:`TypeError` on
654
- invalid input.
+ mapping character ordinals to byte values. Raises a :exc:`TypeError` and
+ return ``NULL`` on invalid input.
655
656
.. versionadded:: 3.2
657
0 commit comments