mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00
Issue #28432: Merge from 3.5
This commit is contained in:
commit
b8bddec4e0
1 changed files with 1 additions and 1 deletions
|
@ -787,7 +787,7 @@ system.
|
||||||
Encode a Unicode object to the current locale encoding. The
|
Encode a Unicode object to the current locale encoding. The
|
||||||
supported error handlers are ``"strict"`` and ``"surrogateescape"``
|
supported error handlers are ``"strict"`` and ``"surrogateescape"``
|
||||||
(:pep:`383`). The encoder uses ``"strict"`` error handler if
|
(:pep:`383`). The encoder uses ``"strict"`` error handler if
|
||||||
*errors* is ``NULL``. Return a :class:`bytes` object. *str* cannot
|
*errors* is ``NULL``. Return a :class:`bytes` object. *unicode* cannot
|
||||||
contain embedded null characters.
|
contain embedded null characters.
|
||||||
|
|
||||||
Use :c:func:`PyUnicode_EncodeFSDefault` to encode a string to
|
Use :c:func:`PyUnicode_EncodeFSDefault` to encode a string to
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue