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.
2 parents bf7dcb9 + 90e0289 commit b8bddecCopy full SHA for b8bddec
1 file changed
Doc/c-api/unicode.rst
@@ -787,7 +787,7 @@ system.
787
Encode a Unicode object to the current locale encoding. The
788
supported error handlers are ``"strict"`` and ``"surrogateescape"``
789
(:pep:`383`). The encoder uses ``"strict"`` error handler if
790
- *errors* is ``NULL``. Return a :class:`bytes` object. *str* cannot
+ *errors* is ``NULL``. Return a :class:`bytes` object. *unicode* cannot
791
contain embedded null characters.
792
793
Use :c:func:`PyUnicode_EncodeFSDefault` to encode a string to
0 commit comments