diff options
Diffstat (limited to 'Doc/library/functions.rst')
-rw-r--r-- | Doc/library/functions.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 875eea0..a420974 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -91,6 +91,14 @@ are always available. They are listed here in alphabetical order. return False +.. function:: ascii(object) + + As :func:`repr`, return a string containing a printable representation of an + object, but escape the non-ASCII characters in the string returned by + :func:`repr` using ``\x``, ``\u`` or ``\U`` escapes. This generates a string + similar to that returned by :func:`repr` in Python 2. + + .. function:: bin(x) Convert an integer number to a binary string. The result is a valid Python |