Thanks to visit codestin.com Credit goes to github.com
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 11194f7 commit 90e0289Copy full SHA for 90e0289
1 file changed
Doc/c-api/unicode.rst
@@ -793,7 +793,7 @@ system.
793
Encode a Unicode object to the current locale encoding. The
794
supported error handlers are ``"strict"`` and ``"surrogateescape"``
795
(:pep:`383`). The encoder uses ``"strict"`` error handler if
796
- *errors* is ``NULL``. Return a :class:`bytes` object. *str* cannot
+ *errors* is ``NULL``. Return a :class:`bytes` object. *unicode* cannot
797
contain embedded null characters.
798
799
Use :c:func:`PyUnicode_EncodeFSDefault` to encode a string to
0 commit comments