diff options
Diffstat (limited to 'Doc/library')
| -rw-r--r-- | Doc/library/functions.rst | 8 | ||||
| -rw-r--r-- | Doc/library/stdtypes.rst | 8 | ||||
| -rw-r--r-- | Doc/library/sys.rst | 2 |
3 files changed, 16 insertions, 2 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 875eea0083..a3c456ca1d 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 unlike :func:`repr`, the non-ASCII + characters in the string returned by :func:`ascii`() are hex-escaped + to generate a same string as :func:`repr` in Python 2. + + .. function:: bin(x) Convert an integer number to a binary string. The result is a valid Python diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 09549ada39..bccc02ab51 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -774,6 +774,14 @@ functions based on regular expressions. least one cased character, false otherwise. +.. method:: str.isprintable() + + Return true if all characters in the string are printable and there is at + least one character, false otherwise. Characters defined in the Unicode + character database as "Other" or "Separator" other than ASCII space(0x20) are + not considered printable. + + .. method:: str.isspace() Return true if there are only whitespace characters in the string and there is diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 0929f0e30e..b35460372f 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -231,8 +231,6 @@ always available. +------------------------------+------------------------------------------+ | :const:`ignore_environment` | -E | +------------------------------+------------------------------------------+ - | :const:`tabcheck` | -t or -tt | - +------------------------------+------------------------------------------+ | :const:`verbose` | -v | +------------------------------+------------------------------------------+ | :const:`unicode` | -U | |
